Update portzap-install
This commit is contained in:
parent
4acd11746b
commit
56db2173dc
1 changed files with 9 additions and 4 deletions
|
@ -22,18 +22,22 @@ perform_update()
|
||||||
done
|
done
|
||||||
for file in ${add}; do
|
for file in ${add}; do
|
||||||
target="${installdir}/${file}"
|
target="${installdir}/${file}"
|
||||||
|
parent=$(dirname "${target}")
|
||||||
|
if [ ! -e ${parent} ]; then
|
||||||
|
mkdir -p ${parent}
|
||||||
|
fi
|
||||||
cp "${file}" "${target}"
|
cp "${file}" "${target}"
|
||||||
chown root:_portzap "${target}"
|
chown root:_portzap "${target}"
|
||||||
chmod u=rw,g=rw,o= "${target}"
|
chown root:_portzap "${parent}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
perform_install()
|
perform_install()
|
||||||
{
|
{
|
||||||
find -s . -maxdepth 1 \
|
find -s . \
|
||||||
|
-maxdepth 1 \
|
||||||
-exec cp -Rfv {} "${installdir}" \; \
|
-exec cp -Rfv {} "${installdir}" \; \
|
||||||
-exec chown -R root:_portzap "${installdir}/{}" \; \
|
-exec chown -R root:_portzap "${installdir}/{}" \;
|
||||||
-exec chmod -R u=rwX,g=rwX,o= "${installdir}/{}" \;
|
|
||||||
for path in ${artifacts}; do
|
for path in ${artifacts}; do
|
||||||
rm -rf "${installdir}/${path}"
|
rm -rf "${installdir}/${path}"
|
||||||
done
|
done
|
||||||
|
@ -41,6 +45,7 @@ perform_install()
|
||||||
|
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
|
umask u=rwX,g=rwX,o=
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
if [ -e "${revfile}" ]; then
|
if [ -e "${revfile}" ]; then
|
||||||
perform_update
|
perform_update
|
||||||
|
|
Loading…
Reference in a new issue