diff options
-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 } |