Allow user arguments to be passed to Docker stop command.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Wed, 21 Jun 2017 06:32:12 +0000 (15:32 +0900)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Wed, 21 Jun 2017 06:32:12 +0000 (15:32 +0900)
launcher
templates/web.template.yml

index 850041abe6580917cd3e94249e1f7e25731c8136..daf818ca3d10857d5052059aba51e9a5f4f18a0e 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -419,7 +419,7 @@ run_stop() {
      then
        (
         set -x
-        $docker_path stop -t 10 $config
+        $docker_path stop -t 10 $user_args $config
        )
      else
        echo "$config was not started !"
index 8bfe6daa9fe59aa78260606a9d5d95822168938e..692dbb152a108cb9919e26e41cb9d1aeb7f986e9 100644 (file)
@@ -62,7 +62,7 @@ run:
 
         # find DISCOURSE_ env vars, strip the leader, lowercase the key
         /usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = #{v}" if k =~ /^DISCOURSE_(.*)/}' > $conf
-        
+
   - file:
      path: /etc/runit/1.d/enable-brotli
      chmod: "+x"