mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-11-10 06:00:37 +08:00
Merge pull request #1968 from nextcloud/enh/noid/fix-session-deletion
rm does not work if there are too many sessions
This commit is contained in:
commit
e17dfd9e66
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ fi
|
||||||
# Delete all active sessions and create a lock file
|
# Delete all active sessions and create a lock file
|
||||||
# But don't kick out the user if the mastercontainer was just updated since we block the interface either way with the lock file
|
# But don't kick out the user if the mastercontainer was just updated since we block the interface either way with the lock file
|
||||||
if [ "$LOCK_FILE_PRESENT" = 0 ] || ! [ -f "/mnt/docker-aio-config/data/daily_backup_running" ]; then
|
if [ "$LOCK_FILE_PRESENT" = 0 ] || ! [ -f "/mnt/docker-aio-config/data/daily_backup_running" ]; then
|
||||||
rm -f "/mnt/docker-aio-config/session/"*
|
find "/mnt/docker-aio-config/session/" -mindepth 1 -delete
|
||||||
fi
|
fi
|
||||||
sudo -u www-data touch "/mnt/docker-aio-config/data/daily_backup_running"
|
sudo -u www-data touch "/mnt/docker-aio-config/data/daily_backup_running"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue