diff options
Diffstat (limited to 'scripts/newtps-debug.sh')
-rwxr-xr-x | scripts/newtps-debug.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/newtps-debug.sh b/scripts/newtps-debug.sh new file mode 100755 index 0000000..ce3e894 --- /dev/null +++ b/scripts/newtps-debug.sh @@ -0,0 +1,8 @@ +#!/bin/sh -x + +INSTANCE_NAME=tps-master +FILE=/etc/sysconfig/$INSTANCE_NAME + +# semanage port -a -t http_port_t -p tcp 8000 +sed 's/^#\(JAVA_OPTS="-Xdebug.*\)$/\1/' < $FILE > $FILE.tmp +mv $FILE.tmp $FILE |