rm -f $1/doinst.sh
if [ -s "$TEMPLATE_BASE.perms" ]; then
- echo Setting jail $1 permissions...
+ echo Creating doinst.sh...
cat $TEMPLATE_BASE.perms | while read entry; do
file="`echo $entry | cut -d ";" -f 1`"
if [ -a "$TEMPLATE_BASE.d/$file" ] && [ -a "$1/$file" ]; then
group="`echo $entry | cut -d ";" -f 3`"
perms="`echo $entry | cut -d ";" -f 4`"
echo "( chmod $perms /$file )" >> $1/doinst.sh
- chown "( $owner:$group /$file )" >> $1/doinst.sh
+ echo "( chown $owner:$group /$file )" >> $1/doinst.sh
fi
done
fi