shell: exec encoding is utf8 by default and no shell
explicitly mark calls that require the shell
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user