aboutsummaryrefslogtreecommitdiff
path: root/subsonic-installer-debian/src/DEBIAN/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-installer-debian/src/DEBIAN/preinst')
-rw-r--r--subsonic-installer-debian/src/DEBIAN/preinst8
1 files changed, 8 insertions, 0 deletions
diff --git a/subsonic-installer-debian/src/DEBIAN/preinst b/subsonic-installer-debian/src/DEBIAN/preinst
new file mode 100644
index 00000000..e15501e5
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/preinst
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+# Stop Subsonic service.
+if [ -e /etc/init.d/subsonic ]; then
+ invoke-rc.d subsonic stop
+fi