Skip to content

Commit

Permalink
Merge ed84e24 into 38b6c96
Browse files Browse the repository at this point in the history
  • Loading branch information
hackersean committed Feb 27, 2024
2 parents 38b6c96 + ed84e24 commit 26915c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/module/systemd.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func NewSystemdModule(config SystemdModuleConfig) *SystemdModule {
systemctl, strings.ToLower(config.Action), config.Unit)

if config.CheckActive {
cmd = fmt.Sprintf("if [[ $(%s is-active %s) == \"active\" ]]; then %s; fi",
cmd = fmt.Sprintf("if %s is-active %s &>/dev/null; then %s; fi",
systemctl, config.Unit, cmd)
}

Expand Down

0 comments on commit 26915c6

Please sign in to comment.