aboutsummaryrefslogtreecommitdiff
path: root/test/data/app-a/hooks/post-install
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/app-a/hooks/post-install')
-rwxr-xr-xtest/data/app-a/hooks/post-install8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/data/app-a/hooks/post-install b/test/data/app-a/hooks/post-install
index 1dfb7be..0717f2a 100755
--- a/test/data/app-a/hooks/post-install
+++ b/test/data/app-a/hooks/post-install
@@ -2,7 +2,13 @@
set -u
-echo "Post install"
+echo "post-install"
+
+if [[ -e $APP_HOME/fail-post-install ]]
+then
+ echo "Simulating failure."
+ exit 1
+fi
NAME=`basename $APP_HOME`