Update DEB install scripts to use systemd scriptlets

This commit is contained in:
Gamerboy59 2024-09-10 21:59:34 +02:00 committed by GitHub
commit 9a1fbe8bee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 41 additions and 23 deletions

View file

@ -1,10 +1,8 @@
#!/bin/bash
#!/bin/sh
set -e
# Stop and disable the service before removing
systemctl stop rpxy || true
systemctl disable rpxy || true
systemctl daemon-reload
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
deb-systemd-invoke stop rpxy.service >/dev/null || true
fi
exit 0