diff options
author | Andrew O'Neill | 2017-07-19 18:33:04 -0400 |
---|---|---|
committer | Andrew O'Neill | 2017-07-19 18:33:04 -0400 |
commit | 9b120c2227ed9386ef7cff36ca3060a2915384dc (patch) | |
tree | 4ff96566f5454fe1e78c8c8568aa6d11ed74e86c | |
parent | ed900db9ae642f6e71bbbca01204068514b921e6 (diff) | |
download | aur-9b120c2227ed9386ef7cff36ca3060a2915384dc.tar.gz |
Attempt to stop the crate service prior to removing the crate user
-rw-r--r-- | crate.install | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/crate.install b/crate.install index 189d0152c2a5..eb3b40bd0d75 100644 --- a/crate.install +++ b/crate.install @@ -1,10 +1,13 @@ post_install() { - useradd -r -g daemon -d /usr/share/crate -s /bin/false crate - chown -R crate:daemon /usr/share/crate - chown -R crate:daemon /var/lib/crate - chown -R crate:daemon /var/log/crate + useradd -r -g daemon -d /usr/share/crate -s /bin/false crate + chown -R crate:daemon /usr/share/crate + chown -R crate:daemon /var/log/crate +} + +pre_remove() { + systemctl stop crate } post_remove() { - userdel crate + userdel crate } |