2023-01-23 13:19:26 +00:00
|
|
|
#!/bin/bash
|
2023-01-23 15:11:51 +00:00
|
|
|
provider="$1";
|
|
|
|
dirname="$2";
|
|
|
|
serviceName="rclone@$provider:$dirname";
|
2023-01-23 13:19:26 +00:00
|
|
|
|
|
|
|
echo "Please create a remote called \`$1\`";
|
2024-03-08 15:13:29 +00:00
|
|
|
rclone config | true;
|
|
|
|
systemctl --user enable "$serviceName" --now | true;
|