Add some informative text to Docker entrypoint scripts when files are copied automatically.

This commit is contained in:
Michael Stenta 2020-04-10 09:43:04 -04:00
parent 028d2266c5
commit d4b941c361
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ set -e
# If the webroot directory is empty, copy from /tmp/www.
if ! [ "$(ls -A /var/www/html/)" ]; then
echo "farmOS webroot not detected. Copying from pre-built codebase in the Docker image."
cp -rp /tmp/www/. /var/www/html
fi

View File

@ -3,6 +3,7 @@ set -e
# If the sites directory is empty, copy from /tmp/sites.
if ! [ "$(ls -A /var/www/html/sites/)" ]; then
echo "farmOS sites directory not detected. Copying from pre-built codebase in the Docker image."
cp -rp /tmp/sites/. /var/www/html/sites
fi