summaryrefslogtreecommitdiff
path: root/auto-update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auto-update.sh')
-rwxr-xr-xauto-update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto-update.sh b/auto-update.sh
index d6f4b36..a2b6581 100755
--- a/auto-update.sh
+++ b/auto-update.sh
@@ -2,7 +2,7 @@
while true; do
- if [[ "$(systemctl is-system-running)" == "running" ]]; then
+ if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; then
if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour)
#sudo #exec sudo /usr/bin/reflector @/etc/xdg/reflector/reflector.conf &
touch /home/system/updated-via-auto-update