1
0
Fork 0
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:
Findus23 2014-09-02 16:25:26 +02:00
parent 7d684ec439
commit 43177a3bee

26
dropbox_neu.sh Executable file
View 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