From 92ea808a5dd135c739caf21cd8f7003433408bd9 Mon Sep 17 00:00:00 2001 From: Daan Date: Wed, 19 Feb 2025 18:49:00 +0100 Subject: [PATCH] Arch Linux Support --- src/wgd.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/wgd.sh b/src/wgd.sh index 45891eb9..a1ad1fd9 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -91,7 +91,10 @@ _installPython(){ fi ;; alpine) - { sudo apk update; sudo apk add python3 net-tools --no-cache; printf "\n\n"; } >> ./log/install.txt + { sudo apk update; sudo apk add python3 net-tools --no-cache; printf "\n\n"; } &>> ./log/install.txt + ;; + arch) + { sudo pacman -Syu python3 net-tools; printf "\n\n"; } &>> ./log/install.txt ;; esac @@ -123,6 +126,9 @@ _installPythonVenv(){ alpine) { sudo apk update; sudo apk add py3-virtualenv ; printf "\n\n"; } >> ./log/install.txt ;; + arch) + { echo "Python Virtual Environment is installed by default from version Python3.3"; printf "\n\n"; } &>> ./log/install.txt # https://wiki.archlinux.org/title/Python/Virtual_environment + ;; *) printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark" printf "%s\n" "$helpMsg" @@ -170,6 +176,9 @@ _installPythonPip(){ alpine) { sudo apk update; sudo apk add py3-pip --no-cache; printf "\n\n"; } >> ./log/install.txt ;; + arch) + { sudo pacman -Syu python-pip; printf "\n\n"; } &>> ./log/install.txt + ;; *) printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark" printf "%s\n" "$helpMsg" @@ -214,6 +223,12 @@ _checkWireguard(){ } &>> ./log/install.txt printf "[WGDashboard] %s WireGuard is successfully installed.\n" "$heavy_checkmark" ;; + arch) + { + sudo pacman -Syu wireguard-tools; printf "\n\n"; + } &>> ./log/install.txt + printf "[WGDashboard] %s WireGuard is successfully installed.\n" "$heavy_checkmark" + ;; *) printf "[WGDashboard] %s Sorry, your OS is not supported. Currently, the install script only supports Debian-based, Red Hat-based, and Alpine Linux.\n" "$heavy_crossmark" printf "%s\n" "$helpMsg"