mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-02 02:39:16 +08:00
17 lines
330 B
Plaintext
17 lines
330 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
case $1 in
|
||
|
remove|upgrade)
|
||
|
INITSYS=$(ls -al /proc/1/exe | awk -F' ' '{print $NF}' | awk -F'/' '{print $NF}')
|
||
|
if [ "systemd" == "${INITSYS}" ]; then
|
||
|
systemctl stop rustdesk || true
|
||
|
systemctl disable rustdesk || true
|
||
|
rm /etc/systemd/system/rustdesk.service || true
|
||
|
fi
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|