summarylogtreecommitdiffstats
path: root/pi-hole-server.install
diff options
context:
space:
mode:
Diffstat (limited to 'pi-hole-server.install')
-rw-r--r--pi-hole-server.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/pi-hole-server.install b/pi-hole-server.install
index fd5cd3b8c9bf..bc4f7de38dfa 100644
--- a/pi-hole-server.install
+++ b/pi-hole-server.install
@@ -9,8 +9,8 @@ post_install() {
/opt/pihole/mimic_setupVars.conf.sh
/usr/bin/pihole updateGravity > /dev/null
systemctl daemon-reload > /dev/null
- [ ! `systemctl is-active pi-hole-gravity.timer 2>&1 >/dev/null` ] && systemctl start pi-hole-gravity.timer
- [ ! `systemctl is-active pi-hole-logtruncate.timer 2>&1 >/dev/null` ] && systemctl start pi-hole-logtruncate.timer
+ systemctl is-active pi-hole-logtruncate.timer 2>&1 >/dev/null || systemctl start pi-hole-logtruncate.timer
+ systemctl is-active pi-hole-gravity.timer 2>&1 >/dev/null || systemctl start pi-hole-gravity.timer
}
post_upgrade() {