Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

packaging: deb: remove obsolete Python version check (#14429)

MichaIng9cb6f38aea46
diff --git a/res/DEBIAN/postinst b/res/DEBIAN/postinst
index dad333ee5..57bb30d61 100755
--- a/res/DEBIAN/postinst
+++ b/res/DEBIAN/postinst
@@ -6,15 +6,13 @@ if [ "$1" = configure ]; then
INITSYS=$(ls -al /proc/1/exe | awk -F' ' '{print $NF}' | awk -F'/' '{print $NF}')
ln -f -s /usr/share/rustdesk/rustdesk /usr/bin/rustdesk
-
+
if [ "systemd" == "$INITSYS" ]; then
if [ -e /etc/systemd/system/rustdesk.service ]; then
rm /etc/systemd/system/rustdesk.service /usr/lib/systemd/system/rustdesk.service /usr/lib/systemd/user/rustdesk.service >/dev/null 2>&1
fi
- version=$(python3 -V 2>&1 | grep -Po '(?<=Python )(.+)')
- parsedVersion=$(echo "${version//./}")
- mkdir -p /usr/lib/systemd/system/
+ mkdir -p /usr/lib/systemd/system/
cp /usr/share/rustdesk/files/systemd/rustdesk.service /usr/lib/systemd/system/rustdesk.service
# try fix error in Ubuntu 18.04
# Failed to reload rustdesk.service: Unit rustdesk.service is not loaded properly: Exec format error.