Further improve setup

This commit is contained in:
Bernd Schoolmann 2023-08-04 00:45:13 +02:00
parent 8b4a76c20b
commit 6a7dcd0980
No known key found for this signature in database
1 changed files with 1 additions and 3 deletions

View File

@ -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 {