summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew O'Neill2017-04-09 11:22:15 -0400
committerAndrew O'Neill2017-04-09 11:22:15 -0400
commitab082e319eb4884e224113092c30e5f08aed073b (patch)
treee00f2b755d125e78ae82e57ec99d7666367ce232
parent013682ea241eb57d713f3f14637872b2edc9920a (diff)
downloadaur-ab082e319eb4884e224113092c30e5f08aed073b.tar.gz
Clean up the nostromo user and process on removal
-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
+}