rustdesk/res/DEBIAN/preinst
fufesou c48ed06d93 wayland: remove user service
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2022-10-17 22:00:48 +08:00

17 lines
293 B
Bash
Executable File

#!/bin/bash
set -e
case $1 in
install|upgrade)
INITSYS=$(ls -al /proc/1/exe | awk -F' ' '{print $NF}' | awk -F'/' '{print $NF}')
if [ "systemd" == "${INITSYS}" ]; then
service rustdesk stop || true
sleep 1
rm -rf /usr/bin/libsciter-gtk.so
fi
;;
esac
exit 0