PortValhalla/scripts/PopOS/cloud-sync/base.sh
2022-11-16 19:04:18 +01:00

13 lines
253 B
Bash
Executable file

#!/bin/bash
provider=$1
dirname=$2
serviceName=rclone@$provider:$dirname
echo "Please create a remote named $1"
rclone config
mkdir -p ~/$dirname
systemctl --user enable $serviceName
systemctl --user daemon-reload
systemctl --user start $serviceName