Added check for already installed wireguard

This commit is contained in:
Pakobbix 2023-03-02 14:21:41 +01:00
parent cfc97be5ca
commit 14a15aa0e4

View File

@ -15,12 +15,17 @@ else
fi fi
fi fi
echo "Überprüfe, ob Wireguard bereits vorhanden ist"
if [ -d /Applications/WireGuard.app ]; then
echo "WireGuard bereits installiert"
else
echo "Entpacke Zip in den Programme Ordner" echo "Entpacke Zip in den Programme Ordner"
if unzip WireGuard.app.zip -d /Applications/ >/dev/null; then if unzip WireGuard.app.zip -d /Applications/ >/dev/null; then
echo "Entpacken erfolgreich" echo "Entpacken erfolgreich"
else else
echo "Entpacken hat nicht funktioniert" echo "Entpacken hat nicht funktioniert"
fi fi
fi
echo "Fixe Berechtigungen" echo "Fixe Berechtigungen"
if sudo chown -R root:wheel /Applications/WireGuard.app; then if sudo chown -R root:wheel /Applications/WireGuard.app; then