2016-10-12 08:05:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2019-04-21 04:34:14 +02:00
|
|
|
# If the sites directory is empty, copy from /tmp/sites.
|
2019-04-20 22:46:10 +02:00
|
|
|
if ! [ "$(ls -A /var/www/html/sites/)" ]; then
|
2020-04-10 15:43:04 +02:00
|
|
|
echo "farmOS sites directory not detected. Copying from pre-built codebase in the Docker image."
|
2019-04-21 04:34:14 +02:00
|
|
|
cp -rp /tmp/sites/. /var/www/html/sites
|
2016-10-21 21:09:17 +02:00
|
|
|
fi
|
2016-10-17 22:52:41 +02:00
|
|
|
|
2016-10-12 08:05:31 +02:00
|
|
|
# Execute the arguments passed into this script.
|
|
|
|
echo "Attempting: $@"
|
|
|
|
exec "$@"
|