Skip to content
Snippets Groups Projects
Commit 2c0123aa authored by George Joseph's avatar George Joseph Committed by Gerrit Code Review
Browse files

Merge "CI: Use brace expansion instead of calling out to seq" into 13

parents 50cfb307 7c65723f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# #
# Publish Asterisk documentation to the wiki # Publish Asterisk documentation to the wiki
# #
#!/usr/bin/env bash
CIDIR=$(dirname $(readlink -fn $0)) CIDIR=$(dirname $(readlink -fn $0))
source $CIDIR/ci.functions source $CIDIR/ci.functions
ASTETCDIR=$DESTDIR/etc/asterisk ASTETCDIR=$DESTDIR/etc/asterisk
...@@ -113,7 +113,7 @@ ${OUTPUTDIR}/publish-rest-api.py --username="${CONFLUENCE_USER}" \ ...@@ -113,7 +113,7 @@ ${OUTPUTDIR}/publish-rest-api.py --username="${CONFLUENCE_USER}" \
rm -f ${OUTPUTDIR}/full-en_US.xml rm -f ${OUTPUTDIR}/full-en_US.xml
sudo $ASTERISK ${USER_GROUP:+-U ${USER_GROUP%%:*} -G ${USER_GROUP##*:}} -gn -C $CONFFILE sudo $ASTERISK ${USER_GROUP:+-U ${USER_GROUP%%:*} -G ${USER_GROUP##*:}} -gn -C $CONFFILE
for n in `seq 1 5` ; do for n in {1..5} ; do
sleep 3 sleep 3
$ASTERISK -rx "core waitfullybooted" -C $CONFFILE && break $ASTERISK -rx "core waitfullybooted" -C $CONFFILE && break
done done
......
...@@ -66,7 +66,7 @@ rm -rf $ASTETCDIR/extensions.{ael,lua} || : ...@@ -66,7 +66,7 @@ rm -rf $ASTETCDIR/extensions.{ael,lua} || :
set -x set -x
sudo $ASTERISK ${USER_GROUP:+-U ${USER_GROUP%%:*} -G ${USER_GROUP##*:}} -gn -C $CONFFILE sudo $ASTERISK ${USER_GROUP:+-U ${USER_GROUP%%:*} -G ${USER_GROUP##*:}} -gn -C $CONFFILE
for n in `seq 1 5` ; do for n in {1..5} ; do
sleep 3 sleep 3
$ASTERISK -rx "core waitfullybooted" -C $CONFFILE && break $ASTERISK -rx "core waitfullybooted" -C $CONFFILE && break
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment