aboutsummaryrefslogtreecommitdiff
path: root/debian/prerm
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-01-05 19:55:55 -0500
committerJoshua Boniface <joshua@boniface.me>2019-01-05 22:31:22 -0500
commit177c4835a5403d47eab10cf597694d8f2567f25f (patch)
tree8d0155923a8ed002002b79e12e9b9e05cc510d19 /debian/prerm
parent3f65cb4f4882d63457192f1bc2f22eaeb9b035c9 (diff)
Add updated configurations for log and config dir
1. Add log and config flags to init and config 2. Move the existing logs and config dirs to the right places 3. Some cleanups in the control scripts 4. Prune the changelog of pre-Jellyfin entries
Diffstat (limited to 'debian/prerm')
-rw-r--r--debian/prerm12
1 files changed, 4 insertions, 8 deletions
diff --git a/debian/prerm b/debian/prerm
index 3cdffed79d..4770c03c41 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -2,7 +2,6 @@
set -e
NAME=jellyfin
-CONF_FILE=/etc/${NAME}.conf
DEFAULT_FILE=/etc/default/${NAME}
# Source Jellyfin default configuration
@@ -10,13 +9,10 @@ if [[ -f $DEFAULT_FILE ]]; then
. $DEFAULT_FILE
fi
-# Source Jellyfin user configuration overrides
-if [[ -f $CONF_FILE ]]; then
- . $CONF_FILE
-fi
-
-# Data directory where Jellyfin database, cache and logs are stored
-PROGRAMDATA=${JELLYFIN_DATA-/var/lib/$NAME}
+# Data directories for program data (cache, db), configs, and logs
+PROGRAMDATA=${JELLYFIN_DATA_DIRECTORY-/var/lib/$NAME}
+CONFIGDATA=${JELLYFIN_CONFIG_DIRECTORY-/etc/$NAME}
+LOGDATA=${JELLYFIN_DATA_DIRECTORY-/var/log/$NAME}
case "$1" in
remove|upgrade|deconfigure)