Updated installer once more
This commit is contained in:
@@ -1,38 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
### THIS IS NOT MY SCRIPT
|
||||
### THIS WAS WRITTEN BY Claude Pageau
|
||||
### All rights over license goes to them
|
||||
|
||||
ver="1.6"
|
||||
echo "$0 ver $ver written by Claude Pageau"
|
||||
|
||||
cd ~
|
||||
if [ ! -f /usr/bin/rclone -o ! -z "$1" ]; then
|
||||
echo "-------------------------------------------------------------------------------"
|
||||
wget -O rclone.zip https://downloads.rclone.org/rclone-current-linux-arm.zip
|
||||
echo "unzip rclone.zip to folder rclone-tmp"
|
||||
unzip -o -j -d rclone-tmp rclone.zip
|
||||
echo "Install files and man pages"
|
||||
cd rclone-tmp
|
||||
cp rclone /usr/bin/
|
||||
chown root:root /usr/bin/rclone
|
||||
chmod 755 /usr/bin/rclone
|
||||
mkdir -p /usr/local/share/man/man1
|
||||
cp rclone.1 /usr/local/share/man/man1/
|
||||
mandb
|
||||
cd ..
|
||||
echo "Deleting rclone.zip and Folder rclone-tmp"
|
||||
rm rclone.zip
|
||||
rm -r rclone-tmp
|
||||
echo "-------------------------------------------------------------------------------"
|
||||
wget -O rclone.zip https://downloads.rclone.org/rclone-current-linux-arm.zip
|
||||
echo "unzip rclone.zip to folder rclone-tmp"
|
||||
unzip -o -j -d rclone-tmp rclone.zip
|
||||
echo "Install files and man pages"
|
||||
cd rclone-tmp
|
||||
cp rclone /usr/bin/
|
||||
chown root:root /usr/bin/rclone
|
||||
chmod 755 /usr/bin/rclone
|
||||
mkdir -p /usr/local/share/man/man1
|
||||
cp rclone.1 /usr/local/share/man/man1/
|
||||
mandb
|
||||
cd ..
|
||||
echo "Deleting rclone.zip and Folder rclone-tmp"
|
||||
rm rclone.zip
|
||||
rm -r rclone-tmp
|
||||
fi
|
||||
|
||||
if [ -f /usr/bin/rclone ]; then
|
||||
echo "rclone is installed at /usr/bin/rclone"
|
||||
rclone -V
|
||||
mkdir -p rpi-sync
|
||||
cd rpi-sync
|
||||
wget -O rclone-sync.sh https://raw.github.com/pageauc/rclone4pi/master/rclone-sync.sh
|
||||
wget -O Readme.md https://raw.github.com/pageauc/rclone4pi/master/Readme.md
|
||||
wget -O rclone-install.sh https://raw.github.com/pageauc/rclone4pi/master/rclone-install.sh
|
||||
chmod +x *sh
|
||||
echo "rclone is installed at /usr/bin/rclone"
|
||||
rclone -V
|
||||
mkdir -p rpi-sync
|
||||
cd rpi-sync
|
||||
wget -O rclone-sync.sh https://raw.github.com/pageauc/rclone4pi/master/rclone-sync.sh
|
||||
wget -O Readme.md https://raw.github.com/pageauc/rclone4pi/master/Readme.md
|
||||
wget -O rclone-install.sh https://raw.github.com/pageauc/rclone4pi/master/rclone-install.sh
|
||||
chmod +x *sh
|
||||
else
|
||||
echo "ERROR - Problem Installing rclone. Please Investigate"
|
||||
echo "ERROR - Problem Installing rclone. Please Investigate"
|
||||
fi
|
||||
|
||||
echo "rclone installed at /usr/bin/rclone"
|
||||
@@ -71,5 +76,3 @@ To upgrade
|
||||
For more Details See https://github.com/pageauc/rclone4pi/wiki/Home
|
||||
Bye
|
||||
"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user