Fix setup for systemd
This commit is contained in:
parent
c255ce18a7
commit
72f671e364
1 changed files with 2 additions and 1 deletions
|
|
@ -71,7 +71,8 @@ func setupSystemd() {
|
||||||
file.WriteString(strings.ReplaceAll(SYSTEMD_SERVICE, "BINARY_PATH", path))
|
file.WriteString(strings.ReplaceAll(SYSTEMD_SERVICE, "BINARY_PATH", path))
|
||||||
file.Close()
|
file.Close()
|
||||||
|
|
||||||
command := exec.Command("pkexec", "mv", "/tmp/goldwarden.service", "/etc/systemd/system/goldwarden.service")
|
userDirectory := os.Getenv("HOME")
|
||||||
|
command := exec.Command("pkexec", "mv", "/tmp/goldwarden.service", userDirectory+"/.config/systemd/user/goldwarden.service")
|
||||||
err = command.Run()
|
err = command.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue