[#615] Fix BunkerWeb not being able to start after a restart because of the /var/run/bunkerweb directory missing in Linux

This commit is contained in:
Théophile Diot 2023-09-06 12:34:04 +02:00
parent 4be53d0cbe
commit 4787400d74
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -144,6 +144,11 @@ function start() {
exit 1
fi
if [ ! -f /var/run/bunkerweb ] ; then
mkdir -p /var/run/bunkerweb
chown nginx:nginx /var/run/bunkerweb
fi
# Start nginx
log "SYSTEMCTL" "" "Starting temp nginx ..."
nginx -e /var/log/bunkerweb/error.log