diff options
Diffstat (limited to 'src/main/swm/initinst')
-rw-r--r-- | src/main/swm/initinst/postproc/post_proc | 25 | ||||
-rw-r--r-- | src/main/swm/initinst/preproc/pre_proc | 4 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/main/swm/initinst/postproc/post_proc b/src/main/swm/initinst/postproc/post_proc new file mode 100644 index 0000000..7561171 --- /dev/null +++ b/src/main/swm/initinst/postproc/post_proc @@ -0,0 +1,25 @@ +#!/bin/sh + +if [ ${SCAMPER_ENABLED} == "true" ] + then + +if [ ! -d /opt/app/${AFTSWM_ACTION_ARTIFACT_GROUP}/${AFTSWM_ACTION_ARTIFACT_NAME}/bin/config2 ] + then + mkdir /opt/app/${AFTSWM_ACTION_ARTIFACT_GROUP}/${AFTSWM_ACTION_ARTIFACT_NAME}/bin/config2 + echo "Creating directory " /opt/app/${AFTSWM_ACTION_ARTIFACT_GROUP}/${AFTSWM_ACTION_ARTIFACT_NAME}/bin/config2 +fi + + +. /opt/app/${AFTSWM_ACTION_ARTIFACT_GROUP}/${AFTSWM_ACTION_ARTIFACT_NAME}/bin/scamper.sh + +#Check to see if the scamper.sh script executed without errors. +#If an error occurred, then exit, stop the install and cause a failed install. +if [ ! $? -eq 0 ] + then + exit $? +fi + +echo "Finished Scamper file generation" +fi +cd ../../common +exec sh -x ./install_postproc.sh diff --git a/src/main/swm/initinst/preproc/pre_proc b/src/main/swm/initinst/preproc/pre_proc new file mode 100644 index 0000000..3f1b26f --- /dev/null +++ b/src/main/swm/initinst/preproc/pre_proc @@ -0,0 +1,4 @@ +#!/bin/sh + +cd ../../common +exec sh -x ./install_preproc.sh |