docker-entrypoint.sh in farmOS 7
#!/bin/bash
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
# Execute the arguments passed into this script.
echo "Attempting: $@"
exec "$@"
File
docker/dev/docker-entrypoint.sh
View source
- #!/bin/bash
- 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
-
- # Execute the arguments passed into this script.
- echo "Attempting: $@"
- exec "$@"