Replace absolute paths with relative paths for system command calls #100

Merged
glyph merged 1 commits from fix_sys_cmd_paths into main 2022-04-06 08:17:42 +00:00
Owner

Fixes issue #94: Go-sbot service status query fails.

Since systemctl may not always be found at /usr/bin/systemctl (depending on OS and user preferences), it's best to invoke the command with systemctl and not an absolute path. This allows the OS to invoke the command regardless of the actual path to the binary.

I've also made the change for calls to nsupdate and curl.

Fixes [issue #94: Go-sbot service status query fails](https://git.coopcloud.tech/PeachCloud/peach-workspace/issues/94). Since `systemctl` may not always be found at `/usr/bin/systemctl` (depending on OS and user preferences), it's best to invoke the command with `systemctl` and not an absolute path. This allows the OS to invoke the command regardless of the actual path to the binary. I've also made the change for calls to `nsupdate` and `curl`.
glyph added 1 commit 2022-04-06 08:17:18 +00:00
glyph added the
peach-lib
label 2022-04-06 08:17:31 +00:00
glyph merged commit 169149d607 into main 2022-04-06 08:17:42 +00:00
glyph deleted branch fix_sys_cmd_paths 2022-04-06 08:17:42 +00:00
Sign in to join this conversation.
No description provided.