nginx-server-from-git/entrypoint.sh
Emmy D'Anello a5598a4508
Add /var/www/html as safe directory
Signed-off-by: Emmy D'Anello <emmy@luemy.eu>
2025-02-26 00:29:59 +01:00

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