summarylogtreecommitdiffstats
path: root/sabnzbd.install
diff options
context:
space:
mode:
Diffstat (limited to 'sabnzbd.install')
-rw-r--r--sabnzbd.install15
1 files changed, 1 insertions, 14 deletions
diff --git a/sabnzbd.install b/sabnzbd.install
index dc62db60b8ec..a0abc8266b6f 100644
--- a/sabnzbd.install
+++ b/sabnzbd.install
@@ -1,9 +1,4 @@
-# Change these to modify the ownership of sabnzbd
-# If you change this here, you also have to change
-# the user and group in the systemd service file.
-SABNZBD_USER="sabnzbd"
-SABNZBD_GROUP="sabnzbd"
-
+# Installation location of SABnzbd
SABNZBD_DIR="/opt/sabnzbd" # should not be changed
## arg 1: the new package version
@@ -14,8 +9,6 @@ post_install() {
xdg-icon-resource install --context mimetypes --size 256 "${SABNZBD_DIR}/nzb.png" application-x-nzb
fi
- post_upgrade
-
cat << "EOM"
==> If you want to associate .nzb-files with SABnzbd, run 'xdg-mime default sabnzbd.desktop applications/x-nzb'
EOM
@@ -31,12 +24,6 @@ pre_upgrade() {
fi
}
-## arg 1: the new package version
-## arg 2: the old package version
-post_upgrade() {
- chown -R "${SABNZBD_USER}:${SABNZBD_GROUP}" "${SABNZBD_DIR}"
-}
-
## arg 1: the old package version
pre_remove() {
pre_upgrade