Require doas for clone|pull|install commands
This commit is contained in:
parent
74e9bc4ef2
commit
d9ebb491b1
1 changed files with 3 additions and 3 deletions
|
@ -41,18 +41,18 @@ require_dependency() {
|
||||||
# main
|
# main
|
||||||
case $1 in
|
case $1 in
|
||||||
"clone")
|
"clone")
|
||||||
require_dependency git
|
require_dependency "git doas"
|
||||||
require_membership_of _portzap
|
require_membership_of _portzap
|
||||||
doas -u _portzap "${libexec}"/portzap-clone "${giturl}" "${gitdir}"
|
doas -u _portzap "${libexec}"/portzap-clone "${giturl}" "${gitdir}"
|
||||||
;;
|
;;
|
||||||
"pull")
|
"pull")
|
||||||
require_dependency git
|
require_dependency "git doas"
|
||||||
require_membership_of _portzap
|
require_membership_of _portzap
|
||||||
doas -u _portzap "${libexec}"/portzap-pull "${gitdir}"
|
doas -u _portzap "${libexec}"/portzap-pull "${gitdir}"
|
||||||
;;
|
;;
|
||||||
"install")
|
"install")
|
||||||
require_root
|
require_root
|
||||||
require_dependency git
|
require_dependency "git doas"
|
||||||
"${libexec}"/portzap-install "${gitdir}" "${installdir}" "${revision}"
|
"${libexec}"/portzap-install "${gitdir}" "${installdir}" "${revision}"
|
||||||
;;
|
;;
|
||||||
"setup")
|
"setup")
|
||||||
|
|
Loading…
Reference in a new issue