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-01-23 15:11:51 +00:00
|
|
|
systemctl --user enable "$serviceName";
|
2023-01-23 14:55:10 +00:00
|
|
|
systemctl --user daemon-reload;
|
2023-01-23 15:11:51 +00:00
|
|
|
systemctl --user start "$serviceName";
|