Set umask. Expand permissions for _portzap group members
This commit is contained in:
parent
f1ed86acfd
commit
f08fec0a86
2 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@ if [ -e "${gitdir}/.git" ]; then
|
||||||
echo "Try 'portzap pull' instead."
|
echo "Try 'portzap pull' instead."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
umask u=rwX,g=rX,o=
|
umask u=rwX,g=rwX,o=
|
||||||
set -x
|
set -x
|
||||||
git clone "${giturl}" "${gitdir}"
|
git clone "${giturl}" "${gitdir}"
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
|
|
|
@ -7,7 +7,6 @@ installdir=$2
|
||||||
revfile=$3
|
revfile=$3
|
||||||
localbase="${LOCALBASE:-/usr/local}"
|
localbase="${LOCALBASE:-/usr/local}"
|
||||||
libexec="${localbase}/libexec/portzap"
|
libexec="${localbase}/libexec/portzap"
|
||||||
mode="u=rwX,g=rwX,o="
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# functions
|
# functions
|
||||||
|
@ -42,18 +41,19 @@ perform_install()
|
||||||
! -name ".gitignore" \
|
! -name ".gitignore" \
|
||||||
! -name ".hooks" \
|
! -name ".hooks" \
|
||||||
! -name ".arcconfig" \
|
! -name ".arcconfig" \
|
||||||
-exec cp -Rfv {} "${installdir}" \;
|
-exec cp -Rpv {} "${installdir}" \;
|
||||||
chown -Rv root:_portzap "${installdir}"
|
set -x
|
||||||
chmod -Rv "${mode}" "${installdir}"
|
chown -R root "${installdir}"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_install()
|
run_install()
|
||||||
{
|
{
|
||||||
install -o root -g _portzap -m "${mode}" -v "$@"
|
install -o root -g _portzap -v "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
|
umask u=rwX,g=rwX,o=
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
run_install "-d" "${installdir}"
|
run_install "-d" "${installdir}"
|
||||||
if [ -e "${revfile}" ]; then
|
if [ -e "${revfile}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue