14 lines
250 B
Bash
14 lines
250 B
Bash
|
#!/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
|