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

trunk/lib/common.sh
trunk/src/templatepkg

index 36bbb4a21fcc935412d5a7af8e6b8ec0a672c63a..e5f6aedee72b08a1d117f33156c7c68bb9902ef2 100644 (file)
@@ -508,7 +508,7 @@ function set_jail_perms {
     echo Setting jail $1 permissions...
     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
+      if [ -e "$TEMPLATE_BASE.d/$file" ] && [ -a "$1/$file" ]; then
         owner="`echo $entry | cut -d ";" -f 2`"
         group="`echo $entry | cut -d ";" -f 3`"
         perms="`echo $entry | cut -d ";" -f 4`"
index 1e037de762721725eb66d35160d54b94f04e9f25..048ac22d98c143fc96164d88e71f89ef5fbc53a5 100755 (executable)
@@ -792,7 +792,7 @@ function create_doinst {
     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
+      if [ -e "$TEMPLATE_BASE.d/$file" ]; then
         owner="`echo $entry | cut -d ";" -f 2`"
         group="`echo $entry | cut -d ";" -f 3`"
         perms="`echo $entry | cut -d ";" -f 4`"