1
0
Fork 0
forked from s3lph/matemat

fix: debian postinst/prerm scripts

This commit is contained in:
s3lph 2024-12-01 23:44:26 +01:00
parent 4cf563ce62
commit b3b47b6b60
Signed by untrusted user: 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