Add some informative text to Docker entrypoint scripts when files are copied automatically.
This commit is contained in:
parent
028d2266c5
commit
d4b941c361
|
@ -3,6 +3,7 @@ set -e
|
||||||
|
|
||||||
# If the webroot directory is empty, copy from /tmp/www.
|
# If the webroot directory is empty, copy from /tmp/www.
|
||||||
if ! [ "$(ls -A /var/www/html/)" ]; then
|
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
|
cp -rp /tmp/www/. /var/www/html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ set -e
|
||||||
|
|
||||||
# If the sites directory is empty, copy from /tmp/sites.
|
# If the sites directory is empty, copy from /tmp/sites.
|
||||||
if ! [ "$(ls -A /var/www/html/sites/)" ]; then
|
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
|
cp -rp /tmp/sites/. /var/www/html/sites
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue