mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
11 lines
251 B
Bash
11 lines
251 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# If the sites directory is empty, copy from /tmp/sites.
|
|
if ! [ "$(ls -A /var/www/html/sites/)" ]; then
|
|
cp -rp /tmp/sites/. /var/www/html/sites
|
|
fi
|
|
|
|
# Execute the arguments passed into this script.
|
|
echo "Attempting: $@"
|
|
exec "$@"
|