summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nostromo.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/nostromo.install b/nostromo.install
index 8a7e131bfbf..bb5cfe8ade8 100644
--- a/nostromo.install
+++ b/nostromo.install
@@ -9,3 +9,11 @@ post_upgrade() {
chown -R nostromo:daemon /usr/share/nostromo/htdocs
chown -R nostromo:daemon /usr/share/nostromo/logs
}
+
+pre_remove() {
+ systemctl stop nostromo
+}
+
+post_remove() {
+ userdel nostromo
+}