...
This commit is contained in:
@@ -36,7 +36,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
return error("can't configure grafana, because no configuration allowed for this installer.")
|
||||
}
|
||||
mut other_actions := plbook.find(filter: 'grafana.')!
|
||||
for other_action in other_actions {
|
||||
for mut other_action in other_actions {
|
||||
if other_action.name in ['destroy', 'install', 'build'] {
|
||||
mut p := other_action.params
|
||||
reset := p.get_default_false('reset')
|
||||
@@ -68,6 +68,7 @@ pub fn play(mut plbook PlayBook) ! {
|
||||
grafana_obj.restart()!
|
||||
}
|
||||
}
|
||||
other_action.done = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,19 +84,19 @@ fn startupmanager_get(cat startupmanager.StartupManagerType) !startupmanager.Sta
|
||||
// systemd
|
||||
match cat {
|
||||
.screen {
|
||||
console.print_debug('startupmanager: screen')
|
||||
console.print_debug("installer: grafana' startupmanager get screen")
|
||||
return startupmanager.get(.screen)!
|
||||
}
|
||||
.zinit {
|
||||
console.print_debug('startupmanager: zinit')
|
||||
console.print_debug("installer: grafana' startupmanager get zinit")
|
||||
return startupmanager.get(.zinit)!
|
||||
}
|
||||
.systemd {
|
||||
console.print_debug('startupmanager: systemd')
|
||||
console.print_debug("installer: grafana' startupmanager get systemd")
|
||||
return startupmanager.get(.systemd)!
|
||||
}
|
||||
else {
|
||||
console.print_debug('startupmanager: auto')
|
||||
console.print_debug("installer: grafana' startupmanager get auto")
|
||||
return startupmanager.get(.auto)!
|
||||
}
|
||||
}
|
||||
@@ -106,7 +107,7 @@ pub fn (mut self Grafana) start() ! {
|
||||
return
|
||||
}
|
||||
|
||||
console.print_header('grafana start')
|
||||
console.print_header('installer: grafana start')
|
||||
|
||||
if !installed()! {
|
||||
install()!
|
||||
@@ -119,7 +120,7 @@ pub fn (mut self Grafana) start() ! {
|
||||
for zprocess in startupcmd()! {
|
||||
mut sm := startupmanager_get(zprocess.startuptype)!
|
||||
|
||||
console.print_debug('starting grafana with ${zprocess.startuptype}...')
|
||||
console.print_debug('installer: grafana starting with ${zprocess.startuptype}...')
|
||||
|
||||
sm.new(zprocess)!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user