summarylogtreecommitdiffstats
path: root/subsonic-beta.install
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-beta.install')
-rw-r--r--subsonic-beta.install6
1 files changed, 6 insertions, 0 deletions
diff --git a/subsonic-beta.install b/subsonic-beta.install
index 17140ffa32c..fc55fa960de 100644
--- a/subsonic-beta.install
+++ b/subsonic-beta.install
@@ -21,6 +21,12 @@ post_install() {
systemctl daemon-reload
}
+pre_remove() {
+ if [[ `systemctl is-active subsonic` == 'active' ]]; then
+ systemctl stop subsonic
+ fi
+}
+
post_remove() {
getent passwd subsonic &>/dev/null && userdel subsonic >/dev/null
getent group subsonic &>/dev/null && groupdel subsonic >/dev/null