fix: debian postinst/prerm scripts
All checks were successful
/ test (push) Successful in 1m0s
/ codestyle (push) Successful in 1m24s

This commit is contained in:
s3lph 2024-12-01 23:44:26 +01:00
parent 4cf563ce62
commit b3b47b6b60
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -4,6 +4,6 @@ set -e
if [[ "$1" == "remove" ]]; then if [[ "$1" == "remove" ]]; then
userdel matemat deb-systemd-invoke stop matemat.service
fi fi