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,9 +6,8 @@
webuiCreateUpdateLock() {
local lock_file="$containers_dir/libreportal/frontend/data/updater.lock"
# 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"
# Create lock file with timestamp and process ID
echo "LibrePortal WebUI Update: $(date '+%Y-%m-%d %H:%M:%S')" > "$lock_file"
if [ $? -eq 0 ]; then
isSuccessful "Update lock file created: $lock_file"

View File

@ -7,6 +7,6 @@ webuiRemoveUpdateLock() {
local lock_file="$containers_dir/libreportal/frontend/data/updater.lock"
if [ -f "$lock_file" ]; then
runFileOp rm -f "$lock_file"
rm "$lock_file"
fi
}