mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
[#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:
parent
4be53d0cbe
commit
4787400d74
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue