control-repo/site-modules/controlm/files/controlm_agent_install.sh
Henry Wang 4e06b1eb56 E37467
2019-12-19 10:17:49 +08:00

12 lines
501 B
Bash

#!/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