From fd74137670010417f137916b8348ade9a625defe Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Fri, 23 Nov 2018 17:09:28 +0000
Subject: [PATCH] Install Ansible from stretch-backports

---
 run.sh |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/run.sh b/run.sh
index b864612..52e0f8c 100755
--- a/run.sh
+++ b/run.sh
@@ -4,6 +4,15 @@
 	cp -Rfp /etc/rundeck-org/* /etc/rundeck/
 fi
 
+# Rundeck 3.0 - new property
+if ! grep -q -e "^rundeck.log4j.config.file" /etc/rundeck/rundeck-config.properties; then
+	echo "rundeck.log4j.config.file = /etc/rundeck/log4j.properties" \
+		>> /etc/rundeck/rundeck-config.properties
+fi
+
+# Rundeck 2.7, 3.0 - new profile
+cp -fp /etc/rundeck-org/profile /etc/rundeck/profile
+
 chown -Rf rundeck:rundeck /etc/rundeck /var/rundeck /var/lib/rundeck
 chmod -Rf o-rwx /etc/rundeck /var/rundeck /var/lib/rundeck
 
@@ -11,10 +20,5 @@
 chmod g+s,o+x /var/lib/rundeck/logs
 
 . /etc/rundeck/profile
-
-DAEMON="java"
-DAEMON_ARGS="${RDECK_JVM} -cp ${BOOTSTRAP_CP} com.dtolabs.rundeck.RunServer /var/lib/rundeck 4440"
-
-rundeckd="$DAEMON $DAEMON_ARGS"
 
 su rundeck -s /bin/bash -c "$rundeckd"

--
Gitblit v1.9.1