From 18ce310e36d7a7ddebbcb639fc86055c59c8cab2 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 7 Apr 2007 19:07:31 +0000 Subject: templatepkg: small fixes on package_template and create_doinst git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@313 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trunk') diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index bd6a5e4..1e037de 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -789,7 +789,7 @@ function create_doinst { 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 @@ -797,7 +797,7 @@ function create_doinst { 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 -- cgit v1.2.3