From cb6301dc01ec804f37c01aa38b78b2003e2385f3 Mon Sep 17 00:00:00 2001 From: librelad Date: Sun, 24 May 2026 20:20:21 +0100 Subject: [PATCH] =?UTF-8?q?auto:=20session-start=20commit=20=E2=80=94=202?= =?UTF-8?q?=20file(s)=20at=202026-05-24=2020:20:20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/webui/data/lock/webui_create_update_lock.sh | 7 ++++--- scripts/webui/data/lock/webui_remove_update_lock.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/webui/data/lock/webui_create_update_lock.sh b/scripts/webui/data/lock/webui_create_update_lock.sh index 07caf95..2fa536b 100755 --- a/scripts/webui/data/lock/webui_create_update_lock.sh +++ b/scripts/webui/data/lock/webui_create_update_lock.sh @@ -6,9 +6,10 @@ webuiCreateUpdateLock() { local lock_file="$containers_dir/libreportal/frontend/data/updater.lock" - # Create lock file with timestamp and process ID - echo "LibrePortal WebUI Update: $(date '+%Y-%m-%d %H:%M:%S')" > "$lock_file" - + # Create lock file with timestamp and process ID. The lock lives in the + # dockerinstall-owned WebUI data dir, so write it as the path owner. + echo "LibrePortal WebUI Update: $(date '+%Y-%m-%d %H:%M:%S')" | runFileWrite "$lock_file" + if [ $? -eq 0 ]; then isSuccessful "Update lock file created: $lock_file" else diff --git a/scripts/webui/data/lock/webui_remove_update_lock.sh b/scripts/webui/data/lock/webui_remove_update_lock.sh index 7959312..8e1b1a9 100755 --- a/scripts/webui/data/lock/webui_remove_update_lock.sh +++ b/scripts/webui/data/lock/webui_remove_update_lock.sh @@ -7,6 +7,6 @@ webuiRemoveUpdateLock() { local lock_file="$containers_dir/libreportal/frontend/data/updater.lock" if [ -f "$lock_file" ]; then - rm "$lock_file" + runFileOp rm -f "$lock_file" fi }