control-repo/site-modules/controlm/files/controlm_agent_install.sh

12 lines
501 B
Bash
Raw Normal View History

2019-12-19 02:17:49 +00:00
#!/bin/bash
cd /apps/bmc/
sudo -u ctmagent /apps/bmc/software/version_9/setup.sh -silent /apps/bmc/ctm/ctm_silentinstall_optus.xml
RESULT=$?
echo "exit status $RESULT"
/bin/date > /apps/bmc/ctm/controlm_agent_install.hasrun
echo "exit status $RESULT" >> /apps/bmc/ctm/controlm_agent_install.hasrun
echo "do not remove this file unless you want to rerun the install" >> /apps/bmc/ctm/controlm_agent_install.hasrun
chmod 444 /apps/bmc/ctm/controlm_agent_install.hasrun
exit $RESULT