Simplify rclone configuration script

This commit is contained in:
Manuel Thalmann 2024-03-09 17:31:53 +01:00
parent 3005df5307
commit 3f31b85f6d

View file

@ -1,5 +1,9 @@
#!/bin/bash
sudo cp "${BASH_SOURCE%/*}/rclone.service" "${BASH_SOURCE%/*}/rclone.target" "${BASH_SOURCE%/*}/rclone@.service" /etc/systemd/user;
pushd "${BASH_SOURCE%/*}" > /dev/null;
sudo cp "rclone.service" "rclone.target" "rclone@.service" /etc/systemd/user;
systemctl enable --user rclone;
mkdir -p ~/.mnt;
touch ~/.mnt/.trackerignore;
popd > /dev/null;