Skip to content

Commit

Permalink
Warn if config folder misses original image configs or files differ
Browse files Browse the repository at this point in the history
  • Loading branch information
flortsch committed Dec 13, 2023
1 parent e6510ac commit b96abf5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,19 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UP
fi
) 9> /var/www/html/nextcloud-init-sync.lock

# check if config files of user installation differ from image
for cfgPath in /usr/src/nextcloud/config/*.php; do
cfgFile=$(basename "$cfgPath")

if [ "$cfgFile" != "config.sample.php" ]; then
if ! cmp -s "/usr/src/nextcloud/config/$cfgFile" "/var/www/html/config/$cfgFile"; then
echo "Warning: your config folder is missing the file $cfgFile that comes with this Docker image or it differs from the original file."
echo "This could cause certain Docker configuration environment variables to be ignored or not work as expected."
echo "Please copy /usr/src/nextcloud/config/$cfgFile into /var/www/html/config/ to ensure that all Docker configuration environment variables work as intended."
fi
fi
done

run_path before-starting
fi

Expand Down

0 comments on commit b96abf5

Please sign in to comment.