Rundeck server based on Debian
Jacek Kowalski
2017-03-14 012faf559522b51c9fe32a9053576d3c4ed6da7e
Rundeck 2.7 profile file migration
1 files modified
10 ■■■■■ changed files
run.sh 10 ●●●●● patch | view | raw | blame | history
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"