From 7bde81a38cd91531dbf96bd90f513adefff1cf6f Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 7 Apr 2007 19:10:08 +0000 Subject: templatepkg: small fixes on create_doinst git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@314 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trunk/lib') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 36bbb4a..e5f6aed 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -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`" -- cgit v1.2.3