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\`";
|
|
|
|
rclone config;
|
|
|
|
|
2023-01-23 15:11:51 +00:00
|
|
|
mkdir -p "~/$dirname";
|
2023-01-23 13:19:26 +00:00
|
|
|
|
2023-04-01 13:36:12 +00:00
|
|
|
systemctl --user enable "$serviceName" --now;
|