From fbc6c0b93a88ac10730dd6f4492750cd32e2b44a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 17 Oct 2012 21:03:43 +0200 Subject: o Adding environment variables to postinstall: - APPSH_BASEDIR - APPSH_HOME - APPSH_INSTANCE - APPSH_NAME - APPSH_VERSION --- test/data/app-a/root/etc/prod/foo.conf | 1 + test/data/app-a/scripts/postinstall | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/data/app-a/root/etc/prod/foo.conf (limited to 'test/data/app-a') diff --git a/test/data/app-a/root/etc/prod/foo.conf b/test/data/app-a/root/etc/prod/foo.conf new file mode 100644 index 0000000..ce01362 --- /dev/null +++ b/test/data/app-a/root/etc/prod/foo.conf @@ -0,0 +1 @@ +hello diff --git a/test/data/app-a/scripts/postinstall b/test/data/app-a/scripts/postinstall index cd16289..a77f86f 100644 --- a/test/data/app-a/scripts/postinstall +++ b/test/data/app-a/scripts/postinstall @@ -1,3 +1,11 @@ #!/bin/bash echo "Hello World!" + +if [ -d root/etc/$APPSH_INSTANCE ] +then + find root/etc/$APPSH_INSTANCE -type f -maxdepth 1 | while read file + do + cp $file root/ + done +fi -- cgit v1.2.3