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
2014-12-01 20:15:04 +01:00

22 lines
661 B
Bash
Executable file

#!/bin/bash
TEXTDOMAIN=la-tools
TEXTDOMAINDIR=./
name="Dropbox"
./apt-update.sh
./installed.sh dropbox $name && exit
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
sudo mv temp /etc/apt/sources.list.d/geogebra.list
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
rm temp
fi
sudo apt-get update
if sudo apt-get install dropbox -y
then
zenity --info --title $"Success" --text $"$name successfully installed"
else
zenity --error --title $"Error" --text $"An error occurred while installing $name"
fi