Further improve setup
This commit is contained in:
parent
8b4a76c20b
commit
6a7dcd0980
|
@ -58,7 +58,7 @@ ExecStart=BINARY_PATH daemonize
|
|||
WantedBy=default.target`
|
||||
|
||||
func setupSystemd() {
|
||||
file, err := os.OpenFile("/tmp/goldwarden.service", os.O_CREATE, 0644)
|
||||
file, err := os.Create("/tmp/goldwarden.service")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@ -77,8 +77,6 @@ func setupSystemd() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
os.Remove("/tmp/goldwarden.service")
|
||||
|
||||
command2 := exec.Command("systemctl", "--now", "--user", "enable", "goldwarden.service")
|
||||
err = command2.Run()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue