Set umask. Expand permissions for _portzap group members

This commit is contained in:
0x1eef 2024-04-17 13:22:00 -03:00
parent f1ed86acfd
commit f08fec0a86
2 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ if [ -e "${gitdir}/.git" ]; then
echo "Try 'portzap pull' instead."
exit 1
fi
umask u=rwX,g=rX,o=
umask u=rwX,g=rwX,o=
set -x
git clone "${giturl}" "${gitdir}"
cd "${gitdir}"

View file

@ -7,7 +7,6 @@ installdir=$2
revfile=$3
localbase="${LOCALBASE:-/usr/local}"
libexec="${localbase}/libexec/portzap"
mode="u=rwX,g=rwX,o="
##
# functions
@ -42,18 +41,19 @@ perform_install()
! -name ".gitignore" \
! -name ".hooks" \
! -name ".arcconfig" \
-exec cp -Rfv {} "${installdir}" \;
chown -Rv root:_portzap "${installdir}"
chmod -Rv "${mode}" "${installdir}"
-exec cp -Rpv {} "${installdir}" \;
set -x
chown -R root "${installdir}"
}
run_install()
{
install -o root -g _portzap -m "${mode}" -v "$@"
install -o root -g _portzap -v "$@"
}
##
# main
umask u=rwX,g=rwX,o=
cd "${gitdir}"
run_install "-d" "${installdir}"
if [ -e "${revfile}" ]; then