Rclone: Difference between revisions

Klinger (talk | contribs)
Bachp (talk | contribs)
Use proper path to mkdir and fusermount
 
Line 54: Line 54:
     Service = {
     Service = {
       Type = "notify";
       Type = "notify";
       ExecStartPre = "/usr/bin/env mkdir -p %h/Example Sync Dir";
       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" ];