parent
241c26e099
commit
fb6e4c0130
@ -0,0 +1,7 @@
|
|||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
end_of_line = lf
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
@ -1,21 +1,26 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$1" = "abort-install" ]; then
|
if [ $1 = "abort-install" ]; then
|
||||||
# preinst was aborted, possibly due to NzbDrone still running.
|
# preinst was aborted, possibly due to NzbDrone still running.
|
||||||
# Nothing to do here
|
# Nothing to do here
|
||||||
:
|
:
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The bin directory is expected to be empty, unless the BuiltIn updater added files.
|
||||||
|
if [ $1 = "remove" ] && [ -d /usr/lib/sonarr/bin ]; then
|
||||||
|
rm -rf /usr/lib/sonarr/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Purge the entire sonarr configuration directory.
|
# Purge the entire sonarr configuration directory.
|
||||||
# TODO: Maybe move a minimal backup to tmp?
|
# TODO: Maybe move a minimal backup to tmp?
|
||||||
if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then
|
if [ $1 = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
db_get sonarr/config_directory
|
db_get sonarr/config_directory
|
||||||
CONFDIR="$RET"
|
CONFDIR="$RET"
|
||||||
if [ -d "$CONFDIR" ]; then
|
if [ -d "$CONFDIR" ]; then
|
||||||
rm -rf "$CONFDIR"
|
rm -rf "$CONFDIR"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#DEBHELPER#
|
#DEBHELPER#
|
||||||
|
Loading…
Reference in new issue