2014-02-23 14:57:38 +01:00
|
|
|
#!/bin/bash
|
2014-12-01 17:01:47 +01:00
|
|
|
TEXTDOMAIN=la-tools
|
|
|
|
TEXTDOMAINDIR=./
|
|
|
|
name="Dropbox"
|
2014-12-01 17:46:52 +01:00
|
|
|
./installed.sh dropbox $name && exit
|
2014-12-20 12:18:46 +01:00
|
|
|
cd /tmp
|
2014-12-01 18:39:06 +01:00
|
|
|
URL="https://www.dropbox.com/download?dl=packages/debian/dropbox_1.6.2_i386.deb"
|
|
|
|
wget -c $URL
|
|
|
|
if sudo dpkg -i ./$(basename $URL)
|
2014-02-23 14:57:38 +01:00
|
|
|
then
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --info --title $"Success" --text $"$name successfully installed"
|
2014-12-01 18:58:50 +01:00
|
|
|
zenity --info --title $"Success" --text $"Please restart Nautilus (file explorer)"
|
2014-12-01 18:39:06 +01:00
|
|
|
rm ./$(basename $URL)
|
2014-02-23 14:57:38 +01:00
|
|
|
else
|
2014-12-01 17:01:47 +01:00
|
|
|
zenity --error --title $"Error" --text $"An error occurred while installing $name"
|
2014-02-23 14:57:38 +01:00
|
|
|
fi
|