install_path=$(whiptail --title "deSEC-DNS-GUI" --inputbox "Pfad in den Installiert werden soll""${r}""${c}""/home/${USER}/deSEC-DNS-GUI" 2>&1 >/dev/tty)
printf" %b deSEC-DNS-GUI wird nach $install_path installiert.\\n""${INFO}"
if[ ! -d "$install_path"];then
mkdir $install_path
fi
printf" %b Kopieren der Programmdateien nach %s.\\n""${INFO}""${install_path}"
cp $(pwd)/desec-dns.sh $install_path/desec-dns.sh
cp $(pwd)/functions.sh $install_path/functions.sh
if[ ! -x $install_path/desec-dns.sh ];then
chmod +x $install_path/desec-dns.sh
fi
printf"\\n"
printf" %b Prüfe ob Installationsverzeichnis schon in PATH liegt...\\n""${INFO}"
case :$PATH:
in *:$install_path:*)
printf" %b Installationsverzeichnis liegt schon in PATH.\\n""${TICK}"
;;
*)
printf" %b Installationsverzeichnis liegt noch nicht in PATH.\\n""${CROSS}"
printf"\\n"
printf" %b Um das Programm von überall aufrufen zu können, muss noch\\n""${INFO}"
printf" der folgende Befehl in .bashrc oder eine ähnliche Datei eingetragen werden: \\n"