added root folder

This commit is contained in:
2018-10-30 23:18:39 +01:00
parent 7447b8a933
commit 83f1ddabb2
4 changed files with 48 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Plexdrive updater
cd /tmp
wget $(curl -s https://api.github.com/repos/dweidenfeld/plexdrive/releases/latest | grep 'browser_' | cut -d\" -f4 | grep plexdrive-linux-amd64) -q -O plexdrive
chmod -c +x /tmp/plexdrive
version=$(/tmp/plexdrive --version)
echo "Installing Plexdrive v. ${version}"
#install plexdrive
mv -v /tmp/plexdrive /usr/local/bin/
chown -c root:root /usr/local/bin/plexdrive