summaryrefslogtreecommitdiffstats
path: root/src/main/swm/initinst/postproc/post_proc
blob: 75611715810e265bd69debe90482fae4f07a5f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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