Skip to content

Commit

Permalink
Added abiltiy to lauch CDM client on recovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamaniN committed Sep 27, 2019
1 parent 16e9ede commit 6eb60c6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions usr/share/rear/verify/CDM/default/400_verify_cdm.sh
@@ -0,0 +1,19 @@
# 400_verify_cdm.sh
# Start the Rubrik (CDM) client after resetting the UUID

RBA_DIR=/etc/rubrik
AGENT_UUID=${RBA_DIR}/conf/uuid
RBA_BIN_DIR=/usr/bin/rubrik

mv ${AGENT_UUID} ${AGENT_UUID}.old
/usr/bin/uuidgen > ${AGENT_UUID}

BOOTSTRAP_DAEMON_OPTS="`cat ${RBA_DIR}/conf/bootstrap_flags.conf`"
AGENT_DAEMON_OPTS="`cat ${RBA_DIR}/conf/agent_flags.conf`"
BOOTSTRAP_DAEMON=$RBA_BIN_DIR/bootstrap_agent_main
AGENT_DAEMON=$RBA_BIN_DIR/backup_agent_main

$BOOTSTRAP_DAEMON $BOOTSTRAP_DAEMON_OPTS
$AGENT_DAEMON $AGENT_DAEMON_OPTS

Log "Rubrik (CDM) agent started"

0 comments on commit 6eb60c6

Please sign in to comment.