Fixing systemd complaint that service configurations are world-inaccessible after install

This commit is contained in:
Anthony "Ishpeck" Tedjamulia
2020-06-03 13:35:48 -06:00
committed by Daniel Theophanes
parent 3c356ae54c
commit 5ab104476c
+1 -1
View File
@@ -132,7 +132,7 @@ func (s *systemd) Install() error {
return fmt.Errorf("Init already exists: %s", confPath)
}
f, err := os.Create(confPath)
f, err := os.OpenFile(confPath, os.O_WRONLY|os.O_CREATE, 0644)
if err != nil {
return err
}