aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-07 19:10:08 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-07 19:10:08 +0000
commit7bde81a38cd91531dbf96bd90f513adefff1cf6f (patch)
tree0a1695efb5645b4328bdfebfb50e11cdea47784c
parent18ce310e36d7a7ddebbcb639fc86055c59c8cab2 (diff)
downloadsimplepkg-7bde81a38cd91531dbf96bd90f513adefff1cf6f.tar.gz
simplepkg-7bde81a38cd91531dbf96bd90f513adefff1cf6f.tar.bz2
templatepkg: small fixes on create_doinst
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@314 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/lib/common.sh2
-rwxr-xr-xtrunk/src/templatepkg2
2 files changed, 2 insertions, 2 deletions
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`"
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 1e037de..048ac22 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -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`"