mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
c48ed06d93
Signed-off-by: fufesou <shuanglongchen@yeah.net>
17 lines
293 B
Bash
Executable File
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
|