Prevent escaping the rclone mount path

This commit is contained in:
Manuel Thalmann 2024-05-16 16:28:39 +02:00
parent aec08e97c8
commit 7faca7cbbf

View file

@ -377,9 +377,9 @@ in {
(lib.generators.toINI { } { ${name} = sync.config; }); (lib.generators.toINI { } { ${name} = sync.config; });
script = pkgs.writeShellScriptBin serviceName '' script = pkgs.writeShellScriptBin serviceName ''
${sync.secretsScript} ${sync.secretsScript}
mkdir -p ${lib.escapeShellArg sync.path} mkdir -p ${sync.path}
mkdir -p /tmp/rclone mkdir -p /tmp/rclone
${lib.getExe pkgs.rclone} mount --config ${configFile} ${name}: ${lib.escapeShellArg sync.path} ${lib.getExe pkgs.rclone} mount --config ${configFile} ${name}: ${sync.path}
''; '';
in in
(lib.getExe script); (lib.getExe script);