Add /var/www/html as safe directory

Signed-off-by: Emmy D'Anello <emmy@luemy.eu>
This commit is contained in:
Emmy D'Anello 2025-02-26 00:29:59 +01:00
parent e8454e2922
commit a5598a4508
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -1,7 +1,7 @@
#!/bin/sh
cd /var/www/html
[ -d .git ] || git clone ${NGINX_SERVER_GIT_URL} .
[ -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/