From 012faf559522b51c9fe32a9053576d3c4ed6da7e Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Tue, 14 Mar 2017 09:42:03 +0000 Subject: [PATCH] Rundeck 2.7 profile file migration --- run.sh | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/run.sh b/run.sh index b864612..5c2ed07 100755 --- a/run.sh +++ b/run.sh @@ -12,9 +12,11 @@ . /etc/rundeck/profile -DAEMON="java" -DAEMON_ARGS="${RDECK_JVM} -cp ${BOOTSTRAP_CP} com.dtolabs.rundeck.RunServer /var/lib/rundeck 4440" - -rundeckd="$DAEMON $DAEMON_ARGS" +# Rundeck 2.6 to 2.7 migration - new profile file +if [ -z "$rundeckd" ]; then + mv -f /etc/rundeck/profile /etc/rundeck/profile.pre-migration + cp -f /etc/rundeck-org/profile /etc/rundeck/profile + . /etc/rundeck/profile +fi su rundeck -s /bin/bash -c "$rundeckd" -- Gitblit v1.9.1