From: Sam Date: Wed, 27 Apr 2016 05:57:25 +0000 (+1000) Subject: we really wanted a global replace here... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fd2e763758a0abe4035688201bbb98a265e0b72a;p=discourse_docker.git we really wanted a global replace here... --- diff --git a/launcher b/launcher index b2a090a..69a33f0 100755 --- a/launcher +++ b/launcher @@ -798,7 +798,7 @@ run_start() { # we got to normalize so we only have allowed strings, this is more comprehensive but lets see how bash does first # hostname=`$docker_path run $user_args --rm $image ruby -e 'print ARGV[0].gsub(/[^a-zA-Z-]/, "-")' $hostname` # docker added more hostname rules - hostname=${hostname/_/-} + hostname=${hostname//_/-} set -x $docker_path run $user_args $links $attach_on_run $restart_policy "${env[@]}" -h "$hostname" \