From adff6a90891e0f70d87bda2b69485399c0b9077d Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 2 Jan 2014 14:22:54 -0800 Subject: [PATCH] push through all DISCOURSE env vars so you can exec rake tasks --- templates/sshd.template.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/sshd.template.yml b/templates/sshd.template.yml index 7325262..0e662f6 100644 --- a/templates/sshd.template.yml +++ b/templates/sshd.template.yml @@ -13,9 +13,13 @@ run: path: /etc/service/sshd/run chmod: "+x" contents: | - #!/bin/sh + #!/bin/bash exec 2>&1 echo export DOCKER_HOST_IP=$DOCKER_HOST_IP > /etc/profile.d/docker.sh + for x in `env | /usr/bin/awk -F= '{if($1 ~ /DISCOURSE_/) print $1}'` + do + echo export "$x"=${!x} >> /etc/profile.d/docker.sh + done chmod +x /etc/profile.d/docker.sh exec /usr/sbin/sshd -D -e -- 2.25.1