installer korrektur

This commit is contained in:
Désiré Werner Menrath 2023-10-29 10:27:12 +01:00
parent adbb5fb677
commit 95fac435a8

View File

@ -9,33 +9,32 @@ a_user=$(whoami)
mkdir -p /home/"$a_user"/.icons ; cp icons/* /home/"$a_user"/.icons/ ; mkdir -p /home/"$a_user"/.config/wg_nmcli
wait;
echo Icons erfolgreich installiert
wait;
# abfrage ob yad installiert ist, wenn nicht dann installiere automatisch yad. Nur Debian basierende Systeme!
echo Wire-G wird installiert.
# abfrage ob benötigte pakete installiert sind, wenn nicht dann installiere automatisch die benötigten Pakete.
if ! which yad >/dev/null
if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1
then
if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1
then
sudo apt install yad
if ! which yad > /dev/null ; then sudo apt install yad
elif ! which notify-send ; then sudo apt install libnotify-bin ; fi
elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1
elif grep -i 'arch\|manjaro\|garuda\|endeavour|' /etc/os-release > /dev/null 2>&1
then
sudo pacman -S yad
if ! which yad > /dev/null ; then sudo pacman -S yad
elif ! which notify-send ; then sudo pacman -S libnotify ; fi
elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1
elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1
then
sudo dnf install yad
if ! which yad > /dev/null ; then sudo dnf install yad
elif ! which notify-send ; then sudo dnf install libnotify
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
elif grep -i 'suse' /etc/os-release > /dev/null 2>&1
then
clear
echo Achtung OpenSuse wird nicht offiziell unterstützt!
echo Sie können yad nachinstallieren und Wire-G dann verwenden,
echo oder den uninstaller ausführen um Wire-G zu entfernen
else
else
echo Ihr system konnte nicht ermittelt werden.
echo Bitte installieren sie yad noch auf iher Distro nach.
echo Wire-G ist dann auch für ihr System bereit.