This repository has been archived on 2025-06-08. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
rustdesk/res/DEBIAN/preinst
fufesou c48ed06d93 wayland: remove user service
Signed-off-by: fufesou <[email protected]>
2022-10-17 22:00:48 +08:00

16 lines
293 B
Shell
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