Fix running the init.d script on a sysvinit system
authorAndrew Ruthven <andrew@etc.gen.nz>
Mon, 31 Dec 2018 09:28:37 +0000 (22:28 +1300)
committerAndrew Ruthven <andrew@etc.gen.nz>
Mon, 31 Dec 2018 09:28:37 +0000 (22:28 +1300)
debian/init.d

index f4a1222c318ed9a72a8e406121ba5388bb37e0c1..204380d5055b484203322a757c578722cd6fcd54 100644 (file)
@@ -64,7 +64,7 @@ case "$1" in
   start|reload|refresh|restart|force-reload)
     log_daemon_msg "Updating $DESC" "$NAME"
 
-    rm $DISABLED_FLAG
+    rm $DISABLED_FLAG 2> /dev/null || true
     if ! /usr/sbin/mythtv-update-motd; then
         log_failure_msg "Failed to update MOTD"
         exit 1