From e1daac32c5b7ca0d902c16135d361aa5303f5124 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 27 Jan 2013 15:00:27 +0100 Subject: o Creating an initial version of install-file. --- test/data/app-a/hooks/post-install | 5 +++++ test/data/app-a/scripts/postinstall | 21 --------------------- 2 files changed, 5 insertions(+), 21 deletions(-) create mode 100755 test/data/app-a/hooks/post-install delete mode 100644 test/data/app-a/scripts/postinstall (limited to 'test/data') diff --git a/test/data/app-a/hooks/post-install b/test/data/app-a/hooks/post-install new file mode 100755 index 0000000..99ad974 --- /dev/null +++ b/test/data/app-a/hooks/post-install @@ -0,0 +1,5 @@ +#!/bin/bash -e + +set -u + +echo "Post install" diff --git a/test/data/app-a/scripts/postinstall b/test/data/app-a/scripts/postinstall deleted file mode 100644 index dc176ff..0000000 --- a/test/data/app-a/scripts/postinstall +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -e - -echo "Hello World!" - -if [ -d etc/$APPSH_INSTANCE ] -then - find etc/$APPSH_INSTANCE -maxdepth 1 -type f | while read file - do - cp $file . - done -fi - -LOGS=$APPSH_APPS/$APPSH_NAME/$APPSH_INSTANCE/logs - -if [ ! -d $LOGS ] -then - echo "Creating logs directory" - mkdir $LOGS -fi - -ln -s $LOGS logs -- cgit v1.2.3