Skip to content

Commit a6196fb

Browse files
committed
Add a ping request if the PING_ON env var is set at 1 (by default it is set at this value)
1 parent be0d1a7 commit a6196fb

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ ENV LANG ${DEFAULT_LOCALE}
6565
ENV LANGUAGE ${DEFAULT_LOCALE}
6666
ENV LC_ALL ${DEFAULT_LOCALE}
6767

68+
# Should a ping to be sent when running the first time the container?
69+
# 1 : yes
70+
# any others values : no
71+
ENV PING_ON 1
72+
6873
#
6974
# Install Silverpeas and Wildfly
7075
#

Dockerfile.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ ENV LANG ${DEFAULT_LOCALE}
6565
ENV LANGUAGE ${DEFAULT_LOCALE}
6666
ENV LC_ALL ${DEFAULT_LOCALE}
6767

68+
# Should a ping to be sent when running the first time the container?
69+
# 1 : yes
70+
# any others values : no
71+
ENV PING_ON 1
72+
6873
#
6974
# Install Silverpeas and Wildfly
7075
#

src/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if [ -f ${SILVERPEAS_HOME}/bin/.install ]; then
9090
if [ $? -eq 0 ]; then
9191
rm ${SILVERPEAS_HOME}/bin/.install
9292
migrate_jcr
93-
curl -k -i --head https://www.silverpeas.org/ping
93+
test ${PING_ON} = 1 && curl -k -i --head https://www.silverpeas.org/ping
9494
else
9595
echo "Error while setting up Silverpeas"
9696
echo

0 commit comments

Comments
 (0)