PortValhalla/scripts/PopOS/cloud-sync/base.sh

14 lines
250 B
Bash
Raw Normal View History

2022-11-12 13:31:03 +00:00
#!/bin/bash
provider=$1
dirname=$2
serviceName=rclone@$provider:$dirname
echo "Please create a remote named $1"
rclone config
mkdir ~/$dirName
systemctl --user enable $serviceName
systemctl --user daemon-reload
systemctl --user start $serviceName