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

View File

@@ -161,8 +161,8 @@ async function configureMail(mailFqdn, mailDomain, serviceConfig) {
// if the 'yellowtent' user of OS and the 'cloudron' user of mail container don't match, the keys become inaccessible by mail code
if (!safe.fs.chmodSync(mailKeyFilePath, 0o644)) throw new BoxError(BoxError.FS_ERROR, `Could not chmod key file: ${safe.error.message}`);
await shell.promises.exec('stopMail', 'docker stop mail || true', {});
await shell.promises.exec('removeMail', 'docker rm -f mail || true', {});
await safe(shell.promises.exec('stopMail', 'docker stop mail', {})); // ignore error
await safe(shell.promises.exec('removeMail', 'docker rm -f mail', {})); // ignore error
const allowInbound = await createMailConfig(mailFqdn);