diff options
author | Varun Gudisena <vg411h@att.com> | 2017-08-31 10:56:56 -0500 |
---|---|---|
committer | Varun Gudisena <vg411h@att.com> | 2017-08-31 10:57:12 -0500 |
commit | acc3ce02997219825091a2e4ed7fd493f2d440b2 (patch) | |
tree | de1db5979894f0dadd6752ae1841fdeb743a5830 /src/main/swm/initinst | |
parent | 3306e2f9cc17833d5816936e0ea2973d9013b00e (diff) |
Revert package name changes
Reverted package name changes to avoid any potential issues. Renamed maven
group id only.
Issue-id: DMAAP-74
Change-Id: I4ca4537d48e5723b2939148e5bd83645ee20dd30
Signed-off-by: Varun Gudisena <vg411h@att.com>
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 |