-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (30 loc) · 739 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (30 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh
PHP=/usr/bin/php
CURL=/usr/bin/curl
JAVA=/usr/bin/java
$CURL -sS https://getcomposer.org/installer | $PHP && \
$PHP composer.phar install && \
mkdir -p selenium && \
{
if [ -e selenium/selenium.jar ]
then
true # do nothing
else
$CURL -o selenium/selenium.jar http://selenium.googlecode.com/files/selenium-server-standalone-2.37.0.jar
fi
} && \
{
if [ -e selenium/selenium.pid ]
then
kill -9 `cat selenium/selenium.pid`
fi
$JAVA -jar selenium/selenium.jar -trustAllSSLCertificates -timeout 30 >&/dev/null &
PID=$!
echo $PID > selenium/selenium.pid
} && \
{
if [ ! -e configuration.yml ]
then
cp sample-configuration.yml configuration.yml
fi
}