diff --git a/spk/sickchill/Makefile b/spk/sickchill/Makefile index b5514815496..53b8d323164 100644 --- a/spk/sickchill/Makefile +++ b/spk/sickchill/Makefile @@ -30,7 +30,8 @@ CHANGELOG = "Switched to a wheel based install, as source and git installs are n HOMEPAGE = https://sickchill.github.io/ LICENSE = GPLv3+ -SERVICE_USER = AUTO +SERVICE_USER = auto + SERVICE_SETUP = src/service-setup.sh SERVICE_PORT = 8081 SERVICE_PORT_TITLE = $(DISPLAY_NAME) diff --git a/spk/sickchill/src/service-setup.sh b/spk/sickchill/src/service-setup.sh old mode 100755 new mode 100644 index 35ebd37a804..252409fc504 --- a/spk/sickchill/src/service-setup.sh +++ b/spk/sickchill/src/service-setup.sh @@ -49,3 +49,9 @@ service_postupgrade() { set_unix_permissions "${SYNOPKG_PKGDEST}" fi } + +service_postuninst () +{ + # Do this as ${SYNOPKG_PKGDEST}/tmp folder not removed and should be. + rm -rf "${SYNOPKG_PKGDEST}" +}