This commit is contained in:
Brian Zalewski 2023-12-06 07:05:53 +00:00
parent 55417196dd
commit 10bd999072

View file

@ -6439,18 +6439,7 @@ softwarePackages:
_home: https://www.netdata.cloud/ _home: https://www.netdata.cloud/
_name: Netdata _name: Netdata
_groups: _groups:
- netdataif (typeof service === 'object' && brew.length) { - netdata
brew.forEach(x => {
runCommand(`Starting / enabling object array ${x.name} with Homebrew`, `${x.sudo ? 'sudo brew' : 'brew'} services start ${x.name}`)
log('success', logStage, `Started / enabled the ${x.name} service with Homebrew`)
})
} else if (typeof service === 'object') {
runCommand(`Starting / enabling object ${service.name} with Homebrew`, `${service.sudo ? 'sudo brew' : 'brew'} services start ${service.name}`)
log('success', logStage, `Started / enabled the ${service.name} service with Homebrew`)
} else {
runCommand(`Starting / enabling ${service} with Homebrew`, `brew services start ${service}`)
log('success', logStage, `Started / enabled the ${service} service with Homebrew`)
}
_service: netdata _service: netdata
_service:brew: _service:brew:
- name: netdata - name: netdata