]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Use rm -f in the systemd services file.
authorAndrew Ruthven <andrew@etc.gen.nz>
Thu, 8 Apr 2021 10:41:57 +0000 (22:41 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Thu, 8 Apr 2021 11:37:56 +0000 (23:37 +1200)
debian/changelog
debian/mythtv-status.service

index 433208524122d341a4bf0f22050d4dbb3baf17fd..1e99a0db149ca3203940ce52d40c23d87ac219bc 100644 (file)
@@ -1,3 +1,9 @@
+mythtv-status (1.0.1-2) UNRELEASED; urgency=medium
+
+  * Update systemd service file to use -f with rm (Closes: #954734).
+
+ -- Andrew Ruthven <andrew@etc.gen.nz>  Sun, 06 Dec 2020 22:51:12 +1300
+
 mythtv-status (1.0.1-1) unstable; urgency=low
 
   * New upstream release.
index 882cf8fe87b9e83cc39ebdb1798c27142214d253..84dcd1988010d0ab61a95ec50fb2ce43ef0c743e 100644 (file)
@@ -7,9 +7,9 @@ Documentation=man:mythtv-status
 [Service]
 Type=oneshot
 RemainAfterExit=true
-ExecStart=/bin/sh -c "rm /var/lib/mythtv-status/motd_update_disabled || true"
+ExecStart=/bin/sh -c "rm -f /var/lib/mythtv-status/motd_update_disabled"
 ExecStart=/usr/sbin/mythtv-update-motd
-ExecStop=/bin/sh -c "touch /var/lib/mythtv-status/motd_update_disabled; rm /run/motd.mythtv-status || true";
+ExecStop=/bin/sh -c "touch /var/lib/mythtv-status/motd_update_disabled; rm -f /run/motd.mythtv-status";
 
 [Install]
 WantedBy=multi-user.target