Fix shell.sudo usage
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user