auto: session-start commit — 2 file(s) at 2026-05-24 20:20:20
This commit is contained in:
parent
a9c83b06b0
commit
cb6301dc01
@ -6,9 +6,10 @@
|
|||||||
webuiCreateUpdateLock() {
|
webuiCreateUpdateLock() {
|
||||||
local lock_file="$containers_dir/libreportal/frontend/data/updater.lock"
|
local lock_file="$containers_dir/libreportal/frontend/data/updater.lock"
|
||||||
|
|
||||||
# Create lock file with timestamp and process ID
|
# Create lock file with timestamp and process ID. The lock lives in the
|
||||||
echo "LibrePortal WebUI Update: $(date '+%Y-%m-%d %H:%M:%S')" > "$lock_file"
|
# 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
|
if [ $? -eq 0 ]; then
|
||||||
isSuccessful "Update lock file created: $lock_file"
|
isSuccessful "Update lock file created: $lock_file"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -7,6 +7,6 @@ webuiRemoveUpdateLock() {
|
|||||||
local lock_file="$containers_dir/libreportal/frontend/data/updater.lock"
|
local lock_file="$containers_dir/libreportal/frontend/data/updater.lock"
|
||||||
|
|
||||||
if [ -f "$lock_file" ]; then
|
if [ -f "$lock_file" ]; then
|
||||||
rm "$lock_file"
|
runFileOp rm -f "$lock_file"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user