summarylogtreecommitdiffstats
path: root/nostromo.install
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 /nostromo.install
parent013682ea241eb57d713f3f14637872b2edc9920a (diff)
downloadaur-ab082e319eb4884e224113092c30e5f08aed073b.tar.gz
Clean up the nostromo user and process on removal
Diffstat (limited to 'nostromo.install')
-rw-r--r--nostromo.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/nostromo.install b/nostromo.install
index 8a7e131bfbfd..bb5cfe8ade83 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
+}