From 3b3c80db30af556d5da7301037bf16782216d0bd Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 30 Jan 2013 20:50:18 +0100 Subject: bin/app-init: o Adding -p to mkdir so parent directories are created. libexec/app-resolver-maven: o Not using command expansion to make sure "set -e" works as normal. o Adding a basic check that xmlstartlet has a useful output. --- test/data/app-a/hooks/post-install | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/data/app-a/hooks/post-install') diff --git a/test/data/app-a/hooks/post-install b/test/data/app-a/hooks/post-install index c548ad7..d4ca67a 100755 --- a/test/data/app-a/hooks/post-install +++ b/test/data/app-a/hooks/post-install @@ -4,6 +4,19 @@ set -u echo "Post install" +NAME=`basename $APP_HOME` + +echo NAME=$NAME +echo pwd=`pwd` +set -x +if [ -d root/etc/$NAME ] +then + find root/etc/$NAME -maxdepth 1 -type f | while read file + do + cp $file root/ + done +fi + [ -d ../../logs ] || mkdir ../../logs ln -s ../../../logs root/logs -- cgit v1.2.3