1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/distribution/debian/prerm
2018-12-29 13:08:48 +01:00

7 lines
176 B
Bash

#!/bin/sh
if [ -f /proc/1/comm ] && [ "`cat /proc/1/comm`" = "systemd" ]; then
rm -f /etc/init.d/sonarr
systemctl stop sonarr.service
systemctl disable sonarr.service
fi