git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
cf130d0
)
add OpenBSD support
author
Mitch Weaver
<redacted>
Sat, 3 Mar 2018 21:55:18 +0000
(22:55 +0100)
committer
Mitch Weaver
<redacted>
Sat, 3 Mar 2018 21:55:18 +0000
(22:55 +0100)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index d7c41b65f4a117ef0c52f28df27b94fe067d0da6..386859a93ad75554a9a75b2d827be7ccb3b8be9d 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-38,7
+38,10
@@
else: # Python 2
raw_input = raw_input # noqa
# Syntactic sugar for "sudo" command in UNIX / Linux
-SUDO = ["/usr/bin/env", "sudo"]
+if platform.system() == "OpenBSD":
+ SUDO = ["/usr/bin/doas"]
+else:
+ SUDO = ["/usr/bin/env", "sudo"]
# Project Settings
git clone https://git.99rst.org/PROJECT