Update file executable_install-program
This commit is contained in:
parent
ee27055a90
commit
d06f69f3b2
1 changed files with 4 additions and 0 deletions
|
@ -1522,6 +1522,7 @@ async function updateSystemd(service) {
|
||||||
await $`sudo systemctl enable --now ${service}`
|
await $`sudo systemctl enable --now ${service}`
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log("error", logStage, `There was an error starting / enabling the ${service} service`)
|
log("error", logStage, `There was an error starting / enabling the ${service} service`)
|
||||||
|
console.error(e)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log("warn", logStage, `The systemctl command is not available so applications with services cannot be started / enabled`)
|
log("warn", logStage, `The systemctl command is not available so applications with services cannot be started / enabled`)
|
||||||
|
@ -1532,6 +1533,9 @@ async function updateSystemd(service) {
|
||||||
try {
|
try {
|
||||||
log("info", logStage, `Starting / enabling the ${service} service with Homebrew`)
|
log("info", logStage, `Starting / enabling the ${service} service with Homebrew`)
|
||||||
await $`brew services start ${service}`
|
await $`brew services start ${service}`
|
||||||
|
} catch (e) {
|
||||||
|
log("error", logStage, `There was an error starting / enabling the ${service} Homebrew service`)
|
||||||
|
console.error(e)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log("warn", logStage, `Homebrew is not available - skipping service start command`)
|
log("warn", logStage, `Homebrew is not available - skipping service start command`)
|
||||||
|
|
Loading…
Reference in a new issue