diff options
Diffstat (limited to 'sickchill-git.install')
-rw-r--r-- | sickchill-git.install | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sickchill-git.install b/sickchill-git.install index b52160d2ee2b..74a04ec3b969 100644 --- a/sickchill-git.install +++ b/sickchill-git.install @@ -1,8 +1,17 @@ +# Remove all program files, including files created or modified by SickChill +_cleanup_app_files() { + rm -rf /opt/sickchill/app +} + post_install() { post_upgrade echo "==> Start and enable sickchill.service. Then visit http://localhost:8081/" } +pre_upgrade() { + _cleanup_app_files +} + post_upgrade() { systemd-sysusers sickchill.conf chown -R sickchill:sickchill /opt/sickchill/app @@ -14,8 +23,7 @@ pre_remove() { } post_remove() { - # Remove additional files created by the built-in updater - rm -rf /opt/sickchill/app + _cleanup_app_files echo "==> To delete the configuration files, run as root: rm -rf /opt/sickchill/data" |