mirror of
https://github.com/Findus23/la-tools.git
synced 2024-08-27 19:52:15 +02:00
Dropbox via Reposity
This commit is contained in:
parent
7d684ec439
commit
43177a3bee
1 changed files with 26 additions and 0 deletions
26
dropbox_neu.sh
Executable file
26
dropbox_neu.sh
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if dpkg -l dropbox|grep -q ii
|
||||||
|
then
|
||||||
|
if apt-get install geogebra44 -y
|
||||||
|
then
|
||||||
|
zenity --info --title "Erfolg" --text "Dropbox wurde erfolgreich installiert"
|
||||||
|
else
|
||||||
|
zenity --error --title "Fehler" --text "Dropbox wurde nicht erfolgreich installiert"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
sources=$(cat /etc/apt/sources.list.d/dropbox.list)
|
||||||
|
if [ "$sources" != "deb http://linux.dropbox.com/debian wheezy main" ]
|
||||||
|
then
|
||||||
|
echo "deb http://linux.dropbox.com/debian wheezy main" > temp
|
||||||
|
mv temp /etc/apt/sources.list.d/geogebra.list
|
||||||
|
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
|
||||||
|
rm temp
|
||||||
|
fi
|
||||||
|
apt-get update
|
||||||
|
if apt-get install dropbox -y
|
||||||
|
then
|
||||||
|
zenity --info --title "Erfolg" --text "Dropbox wurde erfolgreich installiert"
|
||||||
|
else
|
||||||
|
zenity --error --title "Fehler" --text "Dropbox wurde nicht erfolgreich installiert"
|
||||||
|
fi
|
Loading…
Reference in a new issue