mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2024-12-18 05:27:47 +08:00
19 lines
450 B
Bash
19 lines
450 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
SERVICE=rustdesk-hbbr.service
|
|
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
|
|
if [ "$1" = "purge" ]; then
|
|
rm -rf /var/lib/rustdesk-server/ /var/log/rustdesk/rustdesk-hbbr.* /var/log/rustdesk/rustdesk-hbbs.*
|
|
deb-systemd-helper purge "${SERVICE}" >/dev/null || true
|
|
deb-systemd-helper unmask "${SERVICE}" >/dev/null || true
|
|
fi
|
|
|
|
if [ "$1" = "remove" ]; then
|
|
deb-systemd-helper mask "${SERVICE}" >/dev/null || true
|
|
fi
|
|
|
|
exit 0
|