Compare commits

..

No commits in common. "fee195c995d27c496935020c3e231b53320962e2" and "a9c83b06b0f6a4b4340c3578f06675616e7a24de" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -6,10 +6,9 @@
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. The lock lives in the # Create lock file with timestamp and process ID
# dockerinstall-owned WebUI data dir, so write it as the path owner. echo "LibrePortal WebUI Update: $(date '+%Y-%m-%d %H:%M:%S')" > "$lock_file"
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

View File

@ -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
runFileOp rm -f "$lock_file" rm "$lock_file"
fi fi
} }