mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-05-02 12:02:29 +00:00
Update 50-ipv6.sh
This commit is contained in:
parent
c1e3701944
commit
0232ebf3ba
@ -10,6 +10,7 @@ log_info 'IPv6 ...'
|
|||||||
|
|
||||||
# Lowercase
|
# Lowercase
|
||||||
DISABLE_IPV6=$(echo "${DISABLE_IPV6:-}" | tr '[:upper:]' '[:lower:]')
|
DISABLE_IPV6=$(echo "${DISABLE_IPV6:-}" | tr '[:upper:]' '[:lower:]')
|
||||||
|
SKIP_FILE_OWNERSHIP=$(echo "${SKIP_FILE_OWNERSHIP:-}" | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
process_folder () {
|
process_folder () {
|
||||||
FILES=$(find "$1" -type f -name "*.conf")
|
FILES=$(find "$1" -type f -name "*.conf")
|
||||||
@ -31,8 +32,12 @@ process_folder () {
|
|||||||
echo "$(sed -E "$SED_REGEX" "$FILE")" > $FILE
|
echo "$(sed -E "$SED_REGEX" "$FILE")" > $FILE
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$SKIP_FILE_OWNERSHIP" == "true" ] || [ "$SKIP_FILE_OWNERSHIP" == "on" ] || [ "$SKIP_FILE_OWNERSHIP" == "1" ] || [ "$SKIP_FILE_OWNERSHIP" == "yes" ]; then
|
||||||
|
log_info 'Skipping ownership, use only with caution ...'
|
||||||
|
else
|
||||||
# ensure the files are still owned by the npm user
|
# ensure the files are still owned by the npm user
|
||||||
chown -R "$PUID:$PGID" "$1"
|
chown -R "$PUID:$PGID" "$1"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
process_folder /etc/nginx/conf.d
|
process_folder /etc/nginx/conf.d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user