|
@@ -1,19 +0,0 @@
|
|
|
-#!/usr/bin/env bash
|
|
|
-set -e
|
|
|
-
|
|
|
-sed -i "s/a = demo_99/a = ${ALIAS}/" /opt/report/report.conf
|
|
|
-sed -i "s/port = 8882/port = ${PORT}/" /opt/report/report.conf
|
|
|
-sed -i "s/grpid = 9901/grpid = ${GRPID}/" /opt/report/report.conf
|
|
|
-
|
|
|
-mkdir /opt/report/log/
|
|
|
-echo `date` Starting ReportServer >> /opt/report/log/report_server.log
|
|
|
-tail -f /opt/report/log/report_server.log &
|
|
|
-
|
|
|
-if [ ! -z ${DEBUG} ] && [ ${DEBUG} == "true" ]
|
|
|
-then
|
|
|
- touch /opt/report/log/debug.log
|
|
|
- tail -f /opt/report/log/debug.log 2> /dev/null | while read fread; do echo "[debug.log]: ${fread}"; :> /opt/report/log/debug.log; done &
|
|
|
- exec "xvfb-run" "-a" "wine" "/opt/report/ReportServer.exe" "/debug" "debugfile=/opt/report/log/debug.log"
|
|
|
-else
|
|
|
- exec "$@"
|
|
|
-fi
|