13 lines
312 B
Bash
Executable File
13 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd /var/www/html
|
|
[ -d .git ] || git clone ${NGINX_SERVER_GIT_URL} . && git config --global --add safe.directory /var/www/html
|
|
|
|
chown -R nobody:nobody /conf
|
|
rsync -arvP /conf/ /var/www/html/
|
|
|
|
git pull
|
|
if [[ -n "$PHP_ENABLED" ]]; then php-fpm83; fi
|
|
nginx&
|
|
python /hook/docker-hook -c sh /hook/update.sh
|