diff --git a/VERSION b/VERSION index 6e8bf73aa550d4c57f6f35830f1bcdc7a4a62f38..0ea3a944b399d25f7e1b8fe684d754eb8da9fe7f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.2.0 diff --git a/terminator b/terminator index 8399020886770c218e3e64cb4d75dd0655b3366d..a60eddb23ba723170b061fef4dbb7a0848323447 100755 --- a/terminator +++ b/terminator @@ -12,10 +12,14 @@ no warnings qw{ experimental::signatures }; use Mojo::Pg; use Mojo::UserAgent; -# Konfigurace z ENV +use constant SECRETS => '/run/secrets'; my $cfg = {}; +# env z docker secrets +find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp if -f $_ }, SECRETS); + +# Konfigurace z ENV KEY: foreach my $key ( keys %ENV ) { if ( $key =~ /^CFG_(.+)/i ) {