1
0
Fork 0
mirror of https://github.com/Findus23/la-tools.git synced 2024-08-27 19:52:15 +02:00
la-tools/dropbox_neu.sh

23 lines
641 B
Bash
Raw Normal View History

2014-09-02 16:25:26 +02:00
#!/bin/bash
2014-12-01 17:01:47 +01:00
TEXTDOMAIN=la-tools
TEXTDOMAINDIR=./
name="Dropbox"
./installed.sh dropbox $name && exit
2014-09-02 16:25:26 +02:00
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
2014-12-01 17:55:31 +01:00
sudo apt-get update
if sudo apt-get install dropbox -y
2014-09-02 16:25:26 +02:00
then
2014-12-01 17:01:47 +01:00
zenity --info --title $"Success" --text $"$name successfully installed"
2014-09-02 16:25:26 +02:00
else
2014-12-01 17:01:47 +01:00
zenity --error --title $"Error" --text $"An error occurred while installing $name"
2014-09-02 16:25:26 +02:00
fi