Replace absolute paths with relative paths for system command calls #100
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-workspace#100
Loading…
Reference in New Issue
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
.