Skip to content

Commit

Permalink
Merge pull request #184 from sylvaindd/master
Browse files Browse the repository at this point in the history
RUNDECK_SERVER_UUID
  • Loading branch information
jjethwa authored Jan 19, 2021
2 parents 027657e + fb7d7b4 commit 46588c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/opt/run
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,13 @@ if [ ! -f "${initfile}" ]; then
fi
fi

if [ -n "${RUNDECK_SERVER_UUID}" ]; then
echo "rundeck.server.uuid=${RUNDECK_SERVER_UUID}" >> /etc/rundeck/framework.properties
fi

if [ "${CLUSTER_MODE}" == "true" ]; then
echo "rundeck.clusterMode.enabled=true" >> /etc/rundeck/rundeck-config.properties
sed -i 's,rundeck.server.uuid \=.*,rundeck.server.uuid \= '$(uuidgen)',g' /etc/rundeck/framework.properties
sed -i 's,rundeck.server.uuid \=.*,rundeck.server.uuid \= '$(uuidgen)',g' /etc/rundeck/framework.properties
fi

sed -i 's,JAAS_CONF\=.*,JAAS_CONF\="/etc/rundeck/'${JAAS_CONF_FILE}'",' /etc/rundeck/profile
Expand Down

0 comments on commit 46588c1

Please sign in to comment.