aboutsummaryrefslogtreecommitdiff
path: root/test/data/app-a/hooks
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-30 20:50:18 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-30 20:50:18 +0100
commit3b3c80db30af556d5da7301037bf16782216d0bd (patch)
tree8d4c5dac1a73e9a5bd0af4923982bc84566ffd24 /test/data/app-a/hooks
parenta4215743db91c4b7050dfda32a670814a101b773 (diff)
downloadapp.sh-3b3c80db30af556d5da7301037bf16782216d0bd.tar.gz
app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.tar.bz2
app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.tar.xz
app.sh-3b3c80db30af556d5da7301037bf16782216d0bd.zip
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.
Diffstat (limited to 'test/data/app-a/hooks')
-rwxr-xr-xtest/data/app-a/hooks/post-install13
1 files changed, 13 insertions, 0 deletions
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