Replace absolute paths with relative paths for system command calls #100
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix_sys_cmd_paths"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 withsystemctl
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
andcurl
.