Require doas for clone|pull|install commands

This commit is contained in:
0x1eef 2024-04-14 11:36:36 -03:00
parent 74e9bc4ef2
commit d9ebb491b1

View file

@ -41,18 +41,18 @@ require_dependency() {
# main
case $1 in
"clone")
require_dependency git
require_dependency "git doas"
require_membership_of _portzap
doas -u _portzap "${libexec}"/portzap-clone "${giturl}" "${gitdir}"
;;
"pull")
require_dependency git
require_dependency "git doas"
require_membership_of _portzap
doas -u _portzap "${libexec}"/portzap-pull "${gitdir}"
;;
"install")
require_root
require_dependency git
require_dependency "git doas"
"${libexec}"/portzap-install "${gitdir}" "${installdir}" "${revision}"
;;
"setup")