diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-30 20:50:18 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-30 20:50:18 +0100 |
commit | 3b3c80db30af556d5da7301037bf16782216d0bd (patch) | |
tree | 8d4c5dac1a73e9a5bd0af4923982bc84566ffd24 /test/data/app-a/hooks/post-install | |
parent | a4215743db91c4b7050dfda32a670814a101b773 (diff) | |
download | app.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/post-install')
-rwxr-xr-x | test/data/app-a/hooks/post-install | 13 |
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 |