forked from andreafabrizi/Dropbox-Uploader
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
22 lines (15 loc) · 826 Bytes
/
install.sh
File metadata and controls
22 lines (15 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Run this script to install and you will be available to run this script as dbxcli
echo -e "Removing previous dbxcli installation ...\n"
rm -rf /usr/local/opencode/dbxcli
echo -e "Creating a new dbxcli installation folder ...\n"
mkdir -p /usr/local/opencode/dbxcli
echo -e "Downloading dbxcli from github ...\n"
git clone https://github.com/sofibox/dbxcli /usr/local/opencode/dbxcli
echo -e "Giving execution permission to dropbox_uploader.sh and dbxcli ...\n"
chmod +x /usr/local/opencode/dbxcli/dropbox_uploader.sh /usr/local/opencode/dbxcli/dbxcli
echo -e "Removing previous dbxcli symbolic link ...\n"
rm -f /usr/local/bin/dbxcli /usr/bin/dbxcli
echo -e "Creating a new dbxcli symbolic link ...\n"
ln -s /usr/local/opencode/dbxcli/dbxcli /usr/local/bin
echo -e "Running dbxcli reconfigure ...\n"
dbxcli reconfigure