From e6009b3f35c859f953d16b188bb4f16dce61ca4e Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 14 Mar 2017 09:52:55 +0000
Subject: [PATCH] Install Ansible and git

---
 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