]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fixes on package_template and create_doinst
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 19:07:31 +0000 (19:07 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 19:07:31 +0000 (19:07 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@313 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index bd6a5e451891699e3c23f251f9ad34922703e998..1e037de762721725eb66d35160d54b94f04e9f25 100755 (executable)
@@ -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