Update blitz.web.sh

This commit is contained in:
frennkie 2020-05-26 22:54:26 +02:00 committed by GitHub
parent 98e085bc56
commit 7a5be78f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,6 +155,9 @@ elif [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo mkdir -p /var/www/letsencrypt/.well-known/acme-challenge >/dev/null
fi
# make sure admin can write here even without sudo
sudo chown -R admin:www-data /var/www/letsencrypt
# copy webroot
if ! [ -d /var/www/public ]; then
sudo cp -a /home/admin/assets/nginx/www_public/ /var/www/public