shell: exec encoding is utf8 by default and no shell

explicitly mark calls that require the shell
This commit is contained in:
Girish Ramakrishnan
2024-02-21 17:16:33 +01:00
parent 23cac99fe9
commit 14c9260ab0
14 changed files with 54 additions and 51 deletions
+2 -2
View File
@@ -123,8 +123,8 @@ async function start(existingInfra) {
${readOnly} -v /tmp -v /run "${image}" ${cmd}`;
// ignore error if container not found (and fail later) so that this code works across restarts
await shell.promises.exec('stopSftp', 'docker stop sftp || true', {});
await shell.promises.exec('removeSftp', 'docker rm -f sftp || true', {});
await safe(shell.promises.exec('stopSftp', 'docker stop sftp', {})); // ignore error
await safe(shell.promises.exec('removeSftp', 'docker rm -f sftp', {})); // ignore error
await shell.promises.exec('startSftp', runCmd, {});
}