Added systemctl daemon-reload to debian and arch packages
This commit is contained in:
parent
da16b5ef7e
commit
3c7e33e9fa
4 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
9
package/debian/matemat/DEBIAN/postrm
Executable file
9
package/debian/matemat/DEBIAN/postrm
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$1" == "remove" ]]; then
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
fi
|
10
package/debian/matemat/DEBIAN/prerm
Executable file
10
package/debian/matemat/DEBIAN/prerm
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$1" == "remove" ]]; then
|
||||
|
||||
systemctl stop matemat.service
|
||||
userdel matemat
|
||||
|
||||
fi
|
Loading…
Reference in a new issue