forked from s3lph/matemat
fix: debian postinst/prerm scripts
This commit is contained in:
parent
4cf563ce62
commit
b3b47b6b60
2 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ if [[ "$1" == "configure" ]]; then
|
||||||
chmod 0750 /var/lib/matemat
|
chmod 0750 /var/lib/matemat
|
||||||
ln -sf /var/lib/matemat/upload /usr/lib/matemat/static/upload
|
ln -sf /var/lib/matemat/upload /usr/lib/matemat/static/upload
|
||||||
|
|
||||||
systemctl daemon-reload || true
|
deb-systemd-helper enable matemat.service
|
||||||
|
deb-systemd-invoke restart matemat.service
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,6 +4,6 @@ set -e
|
||||||
|
|
||||||
if [[ "$1" == "remove" ]]; then
|
if [[ "$1" == "remove" ]]; then
|
||||||
|
|
||||||
userdel matemat
|
deb-systemd-invoke stop matemat.service
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue