Permalink
Browse files

Adding Link Prefix.

  • Loading branch information...
darron committed Aug 31, 2014
1 parent 0faa37b commit d8ab8c5253bff2f1c4cbc445d132853ab0227126
Showing with 7 additions and 5 deletions.
  1. +2 −0 bin/default
  2. +5 −5 bin/receiver.sh
View
@@ -48,3 +48,5 @@ OCTOLOGS="docker run -d $OCTOLOGS_FILES $OCTOLOGS_IMAGE -p $REMOTE_SYSLOG_PORT -
CONSUL_SERVER="0.0.0.0:8500"
#PRIVATE_REGISTRY=""
+
+LINK_PREFIX="http"
View
@@ -95,13 +95,13 @@ TAGS=$(/usr/bin/octo service:tags $ID)
if [ -n "$XIP_IO" ]
then
- echo "Adding http://$BASE.$XIP_IO"
+ echo "Adding $LINK_PREFIX://$BASE.$XIP_IO"
DOMAINS="$BASE.$XIP_IO"
fi
if [ -n "$DOMAIN_SUFFIX" ]
then
- echo "Adding http://$BASE.$DOMAIN_SUFFIX"
+ echo "Adding $LINK_PREFIX://$BASE.$DOMAIN_SUFFIX"
DOMAINS="$DOMAINS,$BASE.$DOMAIN_SUFFIX"
fi
@@ -113,7 +113,7 @@ then
sed -i -e '$a\' $CNAME
while read DOMAIN
do
- echo "Adding http://$DOMAIN"
+ echo "Adding $LINK_PREFIX://$DOMAIN"
DOMAINS="$DOMAINS,$DOMAIN"
done < $CNAME
fi
@@ -140,8 +140,8 @@ fi
/usr/bin/octo config:proxy
-if [ -n "$XIP_IO" ]; then echo "Your site is available at: http://$BASE.$XIP_IO";fi
-if [ -n "$DOMAIN_SUFFIX" ]; then echo "Your site is available at: http://$BASE.$DOMAIN_SUFFIX";fi
+if [ -n "$XIP_IO" ]; then echo "Your site is available at: $LINK_PREFIX://$BASE.$XIP_IO";fi
+if [ -n "$DOMAIN_SUFFIX" ]; then echo "Your site is available at: $LINK_PREFIX://$BASE.$DOMAIN_SUFFIX";fi
if [ -n "$PRIVATE_REGISTRY" ]; then
echo "Pushing $BASE to a private registry."

0 comments on commit d8ab8c5

Please sign in to comment.