Add RustDesk Flatpak installation to autoinstaller

- Added Flatpak installation of RustDesk in setup-installed-system.sh
- Includes Flathub remote setup and non-interactive installation
- Runs before final system configuration completion
parent 75228311
...@@ -120,6 +120,18 @@ elif [ -d "$TARGET_MOUNT/etc/init.d" ]; then ...@@ -120,6 +120,18 @@ elif [ -d "$TARGET_MOUNT/etc/init.d" ]; then
fi fi
echo "SSH service enabled on installed system" echo "SSH service enabled on installed system"
# 9. Install RustDesk via Flatpak
echo "Installing RustDesk via Flatpak..."
if [ -x "$TARGET_MOUNT/usr/bin/flatpak" ] && [ -f "$TARGET_MOUNT/root/com.rustdesk.RustDesk.flatpakref" ]; then
# Add Flathub remote if not already added
chroot "$TARGET_MOUNT" flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo 2>/dev/null || true
# Install RustDesk
chroot "$TARGET_MOUNT" flatpak install -y --noninteractive /root/com.rustdesk.RustDesk.flatpakref
echo "RustDesk installed successfully via Flatpak"
else
echo "Warning: Flatpak not available or RustDesk flatpakref not found"
fi
echo "Installed system configuration completed!" echo "Installed system configuration completed!"
echo "" echo ""
echo "Installed system will now:" echo "Installed system will now:"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment