mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 09:45:13 +08:00
💐 Sync 2026-07-18 20:20:11
This commit is contained in:
1 parent
bc9ac87cd6
commit
ccd8763bcd
66 files changed
+14022
-10358
No files matched your search
@@ -115,4 +115,16 @@ while IFS= read -r id || [ -n "$id" ]; do
|
||||
done < "$TMPDIR/ids"
|
||||
|
||||
log "finished daed subscription update: ok=$ok fail=$fail total=$count"
|
||||
[ "$fail" -eq 0 ]
|
||||
|
||||
if [ "$fail" -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$count" -gt 0 ] && [ "$ok" -gt 0 ] && /bin/pidof daed >/dev/null 2>&1; then
|
||||
log "restarting daed to apply updated subscriptions"
|
||||
if ! /etc/init.d/daed restart >>"$LOG" 2>&1; then
|
||||
fail 8 "daed restart failed after subscription update"
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user