salt/ci/teamcity/etc/init.d/teamcity in salted-rails-0.0.6 vs salt/ci/teamcity/etc/init.d/teamcity in salted-rails-0.0.7

- old
+ new

@@ -1,16 +1,16 @@ #!/bin/sh # /etc/init.d/teamcity - startup script for teamcity -export TEAMCITY_DATA_PATH="/var/TeamCity/.BuildServer" -. /etc/profile.d/java.sh +export TEAMCITY_DATA_PATH="{{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['teamcity'] }}/.BuildServer" + /etc/profile.d/java.sh case $1 in start) - start-stop-daemon --start -c www-data --exec /var/TeamCity/bin/runAll.sh start + start-stop-daemon --start -c {{ pillar['username'] }} --exec {{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['teamcity'] }}/bin/runAll.sh start ;; stop) - start-stop-daemon --start -c www-data --exec /var/TeamCity/bin/runAll.sh stop + start-stop-daemon --start -c {{ pillar['username'] }} --exec {{ pillar['homedir'] }}/local/TeamCity-{{ pillar['versions']['teamcity'] }}/bin/runAll.sh stop ;; esac exit 0