From 95fac435a8ce179042fee2784d08de35a3f1cd14 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 29 Oct 2023 10:27:12 +0100 Subject: [PATCH] installer korrektur --- installer1.0.5 | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/installer1.0.5 b/installer1.0.5 index 2e4740c..7fa2766 100755 --- a/installer1.0.5 +++ b/installer1.0.5 @@ -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 - - elif grep -i 'fedora' /etc/os-release > /dev/null 2>&1 + 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 then - sudo dnf install yad - - elif grep -i 'suse' /etc/os-release > /dev/null 2>&1 + 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 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.