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
|
|
|
|
|
2022-11-16 18:04:18 +00:00
|
|
|
mkdir -p ~/$dirname
|
2022-11-12 13:31:03 +00:00
|
|
|
|
|
|
|
systemctl --user enable $serviceName
|
|
|
|
systemctl --user daemon-reload
|
|
|
|
systemctl --user start $serviceName
|