aboutsummaryrefslogtreecommitdiff
path: root/test/data/app-a
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-17 21:03:43 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-17 21:05:52 +0200
commitfbc6c0b93a88ac10730dd6f4492750cd32e2b44a (patch)
tree06da50f5115f1f20b34dad817b98cd1bc4c677ea /test/data/app-a
parent265b1d8b25945898e11801242dbff7639e1a4a60 (diff)
downloadapp.sh-fbc6c0b93a88ac10730dd6f4492750cd32e2b44a.tar.gz
app.sh-fbc6c0b93a88ac10730dd6f4492750cd32e2b44a.tar.bz2
app.sh-fbc6c0b93a88ac10730dd6f4492750cd32e2b44a.tar.xz
app.sh-fbc6c0b93a88ac10730dd6f4492750cd32e2b44a.zip
o Adding environment variables to postinstall:
- APPSH_BASEDIR - APPSH_HOME - APPSH_INSTANCE - APPSH_NAME - APPSH_VERSION
Diffstat (limited to 'test/data/app-a')
-rw-r--r--test/data/app-a/root/etc/prod/foo.conf1
-rw-r--r--test/data/app-a/scripts/postinstall8
2 files changed, 9 insertions, 0 deletions
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