mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
delete caddy locks if existing on startup
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
216d238625
commit
fa06f1c425
2 changed files with 10 additions and 0 deletions
|
|
@ -66,6 +66,11 @@ caddy fmt --overwrite /tmp/Caddyfile
|
|||
# Add caddy path
|
||||
mkdir -p /mnt/data/caddy/
|
||||
|
||||
# Fix caddy startup
|
||||
if [ -d "/mnt/data/caddy/locks" ]; then
|
||||
rm -rf /mnt/data/caddy/locks/*
|
||||
fi
|
||||
|
||||
# Fix apache startup
|
||||
rm -f /usr/local/apache2/logs/httpd.pid
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue