PortValhalla/scripts/PopOS/software/rclone/install.sh

14 lines
281 B
Bash
Raw Normal View History

2022-11-12 13:25:48 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
exec sudo bash "$0"
fi
package=$(mktemp)
wget https://github.com/rclone/rclone/releases/download/v1.60.0/rclone-v1.60.0-linux-amd64.deb -O $package
dpkg -i $package
rm -f $package
cp ./rclone@.service /etc/systemd/user