From 8ab74d8ab656ccb83475ced498bed094afc01147 Mon Sep 17 00:00:00 2001 From: Alexander Hyett Date: Tue, 26 Sep 2017 22:22:01 +0100 Subject: [PATCH] Removed stripping out code of colons as not required --- docker-compose.yml | 2 +- export_env.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a83d9ca..e2dea00 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,4 +5,4 @@ services: build: . container_name: recurring-console environment: - - CRON_Console:OutputString=NewTestString \ No newline at end of file + - CRON_Console__OutputString=NewTestString \ No newline at end of file diff --git a/export_env.sh b/export_env.sh index e508822..8eaa3fa 100644 --- a/export_env.sh +++ b/export_env.sh @@ -1,5 +1,5 @@ #!/bin/bash echo '#!/bin/bash' > /app/set_env.sh -printenv | sed '/^affinity:container/ d' | sed -r ':b; s/^([^=]*):/\1__/g; tb;' | sed -r 's/^([a-zA-Z_]+[a-zA-Z0-9_-]*)=(.*)$/export \1="\2"/g' >> /app/set_env.sh +printenv | sed '/^affinity:container/ d' | sed -r 's/^([a-zA-Z_]+[a-zA-Z0-9_-]*)=(.*)$/export \1="\2"/g' >> /app/set_env.sh chmod +x /app/set_env.sh \ No newline at end of file