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/scripts/postinstall | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/data/app-a/scripts/postinstall') 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