Verified Commit c127d08b authored by Aral Balkan's avatar Aral Balkan
Browse files

Clean up output of disable command

parent 7f950bad
......@@ -129,8 +129,9 @@ switch (true) {
ensureRoot('disable')
ensureSystemctl()
try {
childProcess.execSync('sudo systemctl disable web-server', {env: process.env})
childProcess.execSync('sudo systemctl stop web-server', {env: process.env})
childProcess.execSync('sudo systemctl disable web-server', {env: process.env, stdio: 'pipe'})
childProcess.execSync('sudo systemctl stop web-server', {env: process.env, stdio: 'pipe'})
console.log('\n 🎈 Server stopped and removed from startup.\n')
} catch (error) {
console.error(error, '\n 👿 Error: Could not disable web server.\n')
process.exit(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment