mirror of
https://github.com/netbirdio/service.git
synced 2026-05-22 17:08:14 -07:00
fix: handle rpm-ostree distros and mark as systemd-enabled
This commit is contained in:
@@ -20,6 +20,9 @@ import (
|
||||
)
|
||||
|
||||
func isSystemd() bool {
|
||||
if _, err := exec.LookPath("rpm-ostree"); err == nil {
|
||||
return true
|
||||
}
|
||||
if _, err := os.Stat("/run/systemd/system"); err == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user