Added systemctl daemon-reload to debian and arch packages

This commit is contained in:
s3lph 2018-11-04 21:44:30 +01:00
parent da16b5ef7e
commit 3c7e33e9fa
4 changed files with 29 additions and 0 deletions

View file

@ -13,6 +13,8 @@ post_install() {
find /var/lib/matemat -type d -exec chmod 0750 {} \;
find /var/lib/matemat -type f -exec chmod 0640 {} \;
systemctl daemon-reload
}
pre_remove() {
@ -21,3 +23,9 @@ pre_remove() {
userdel matemat
}
post_remove() {
systemctl daemon-reload
}

View file

@ -16,4 +16,6 @@ if [[ "$1" == "configure" ]]; then
find /var/lib/matemat -type d -exec chmod 0750 {} \;
find /var/lib/matemat -type f -exec chmod 0640 {} \;
systemctl daemon-reload
fi

View file

@ -0,0 +1,9 @@
#!/bin/bash
set -e
if [[ "$1" == "remove" ]]; then
systemctl daemon-reload
fi

View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e
if [[ "$1" == "remove" ]]; then
systemctl stop matemat.service
userdel matemat
fi