mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Merge pull request #6919 from nextcloud/enh/6893/delete-caddy-lock
delete caddy locks if existing on startup
This commit is contained in:
commit
816675e747
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
|
||||
|
||||
|
|
|
|||
|
|
@ -375,6 +375,11 @@ export TZ=Etc/UTC
|
|||
# Fix apache startup
|
||||
rm -f /var/run/apache2/httpd.pid
|
||||
|
||||
# Fix caddy startup
|
||||
if [ -d "/mnt/docker-aio-config/caddy/locks" ]; then
|
||||
rm -rf /mnt/docker-aio-config/caddy/locks/*
|
||||
fi
|
||||
|
||||
# Fix the Caddyfile format
|
||||
caddy fmt --overwrite /Caddyfile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue