Rclone: Difference between revisions
Proper way of writing in xdg config directory |
Use proper path to mkdir and fusermount |
||
| (One intermediate revision by one other user not shown) | |||
| Line 54: | Line 54: | ||
Service = { | Service = { | ||
Type = "notify"; | Type = "notify"; | ||
ExecStartPre = " | ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p %h/Example Sync Dir"; | ||
ExecStart = "${pkgs.rclone}/bin/rclone --config=%h/.config/rclone/example.conf --vfs-cache-mode writes --ignore-checksum mount \"fichier:\" \"Example Sync Dir\""; | ExecStart = "${pkgs.rclone}/bin/rclone --config=%h/.config/rclone/example.conf --vfs-cache-mode writes --ignore-checksum mount \"fichier:\" \"%h/Example Sync Dir\""; | ||
ExecStop="/bin/fusermount -u %h/Example Sync Dir/%i"; | ExecStop="/run/wrappers/bin/fusermount -u %h/Example Sync Dir/%i"; | ||
}; | }; | ||
Install.WantedBy = [ "default.target" ]; | Install.WantedBy = [ "default.target" ]; | ||
| Line 62: | Line 62: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Applications]] | |||
[[Category:CLI Applications]] | |||
[[Category:Backup]] | [[Category:Backup]] | ||