Fix shell.sudo usage

This commit is contained in:
Girish Ramakrishnan
2021-08-30 09:24:55 -07:00
parent a5d41e33f9
commit d2c2b8e680

View File

@@ -1643,7 +1643,7 @@ async function startGraphite(existingInfra, serviceConfig) {
await shell.promises.exec('startGraphite', cmd);
// restart collectd to get the disk stats after graphite starts. currently, there is no way to do graphite health check
setTimeout(async () => await safe(shell.sudo('restartcollectd', [ RESTART_SERVICE_CMD, 'collectd' ], {})), 60000);
setTimeout(async () => await safe(shell.promises.sudo('restartcollectd', [ RESTART_SERVICE_CMD, 'collectd' ], {})), 60000);
}
async function setupProxyAuth(app, options) {