diff options
author | Andrew O'Neill | 2017-04-09 11:22:15 -0400 |
---|---|---|
committer | Andrew O'Neill | 2017-04-09 11:22:15 -0400 |
commit | ab082e319eb4884e224113092c30e5f08aed073b (patch) | |
tree | e00f2b755d125e78ae82e57ec99d7666367ce232 | |
parent | 013682ea241eb57d713f3f14637872b2edc9920a (diff) | |
download | aur-ab082e319eb4884e224113092c30e5f08aed073b.tar.gz |
Clean up the nostromo user and process on removal
-rw-r--r-- | nostromo.install | 8 |
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 +} |