Added question to delete old Firefox Profile if found

(rerunning script after a failure)
This commit is contained in:
Pakobbix 2022-12-03 12:55:21 +01:00
parent 539422e8e7
commit ef35f52b33

View File

@ -184,8 +184,13 @@ Dieser soll im Hintergrund die Werbeseiten aufrufen."
if [ -d ~/ebesucher ]; then
skip "Ordner ebesucher exestiert bereits"
if ! [ -f ~/ebesucher/config.zip ]; then
wget -O ~/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
unzip ~/ebesucher/config.zip -d ~/ebesucher/
if whiptail --title "Alte config gefunden" --yesno "Es wurde bereits ein Firefox Profil angelegt, soll dieses gelöscht und überschrieben werden?" 20 100; then
rm -f ~/ebesucher/config.zip
wget -O ~/ebesucher/config.zip https://github.com/Pakobbix/passive-income/raw/master/config.zip
unzip ~/ebesucher/config.zip -d ~/ebesucher/
else
unzip ~/ebesucher/config.zip -d ~/ebesucher/
fi
fi
else
if [ "$linux_user" == "root" ]; then