File tree Expand file tree Collapse file tree 2 files changed +10
-22
lines changed Expand file tree Collapse file tree 2 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
source /opt/bin/functions.sh
4
- /opt/selenium /generate_config > /opt /selenium/config.json
4
+ /opt/bin /generate_config > /home/seluser /selenium/config.json
5
5
6
6
export GEOMETRY=" $SCREEN_WIDTH " " x" " $SCREEN_HEIGHT " " x" " $SCREEN_DEPTH "
7
7
8
- if [ ! -e /opt /selenium/config.json ]; then
8
+ if [ ! -e /home/seluser /selenium/config.json ]; then
9
9
echo No Selenium Node configuration file, the node-base image is not intended to be run directly. 1>&2
10
10
exit 1
11
11
fi
@@ -29,22 +29,16 @@ if [ ! -z "$SE_OPTS" ]; then
29
29
echo " appending selenium options: ${SE_OPTS} "
30
30
fi
31
31
32
- # TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs
33
-
34
32
SERVERNUM=$( get_server_num)
35
33
36
34
rm -f /tmp/.X* lock
37
35
38
- env | cut -f 1 -d " =" | sort > asroot
39
- sudo -E -u seluser -i env | cut -f 1 -d " =" | sort > asseluser
40
- sudo -E -i -u seluser \
41
- " $( for E in $( grep -vxFf asseluser asroot) ; do echo $E =$( eval echo \$ $E ) ; done) " \
42
- DISPLAY=$DISPLAY \
36
+ DISPLAY=$DISPLAY \
43
37
xvfb-run -n $SERVERNUM --server-args=" -screen 0 $GEOMETRY -ac +extension RANDR" \
44
- java ${JAVA_OPTS} -jar /opt /selenium/selenium-server-standalone.jar \
38
+ java ${JAVA_OPTS} -jar /home/seluser /selenium/selenium-server-standalone.jar \
45
39
-role node \
46
40
-hub http://$HUB_PORT_4444_TCP_ADDR :$HUB_PORT_4444_TCP_PORT /grid/register \
47
- -nodeConfig /opt /selenium/config.json \
41
+ -nodeConfig /home/seluser /selenium/config.json \
48
42
${SE_OPTS} &
49
43
NODE_PID=$!
50
44
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
source /opt/bin/functions.sh
4
- /opt/selenium /generate_config > /opt /selenium/config.json
4
+ /opt/bin /generate_config > /home/seluser /selenium/config.json
5
5
6
6
export GEOMETRY=" $SCREEN_WIDTH " " x" " $SCREEN_HEIGHT " " x" " $SCREEN_DEPTH "
7
7
8
- if [ ! -e /opt /selenium/config.json ]; then
8
+ if [ ! -e /home/seluser /selenium/config.json ]; then
9
9
echo No Selenium Node configuration file, the node-base image is not intended to be run directly. 1>&2
10
10
exit 1
11
11
fi
@@ -29,22 +29,16 @@ if [ ! -z "$SE_OPTS" ]; then
29
29
echo " appending selenium options: ${SE_OPTS} "
30
30
fi
31
31
32
- # TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs
33
-
34
32
SERVERNUM=$( get_server_num)
35
33
36
34
rm -f /tmp/.X* lock
37
35
38
- env | cut -f 1 -d " =" | sort > asroot
39
- sudo -E -u seluser -i env | cut -f 1 -d " =" | sort > asseluser
40
- sudo -E -i -u seluser \
41
- " $( for E in $( grep -vxFf asseluser asroot) ; do echo $E =$( eval echo \$ $E ) ; done) " \
42
- DISPLAY=$DISPLAY \
36
+ DISPLAY=$DISPLAY \
43
37
xvfb-run -n $SERVERNUM --server-args=" -screen 0 $GEOMETRY -ac +extension RANDR" \
44
- java ${JAVA_OPTS} -jar /opt /selenium/selenium-server-standalone.jar \
38
+ java ${JAVA_OPTS} -jar /home/seluser /selenium/selenium-server-standalone.jar \
45
39
-role node \
46
40
-hub http://$HUB_PORT_4444_TCP_ADDR :$HUB_PORT_4444_TCP_PORT /grid/register \
47
- -nodeConfig /opt /selenium/config.json \
41
+ -nodeConfig /home/seluser /selenium/config.json \
48
42
${SE_OPTS} &
49
43
NODE_PID=$!
50
44
You can’t perform that action at this time.
0 commit comments