From fc8c25ddc857fb111c2c83827410a019b1d93783 Mon Sep 17 00:00:00 2001 From: aptalca Date: Mon, 20 Apr 2020 14:20:52 -0400 Subject: [PATCH] fix typo in conf check --- README.md | 1 + readme-vars.yml | 1 + root/etc/cont-init.d/30-config | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff65eac..0352f82 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **20.04.20:** - Fix typo in client mode conf existence check. * **13.04.20:** - Fix bug that forced conf recreation on every start. * **08.04.20:** - Add arm32/64 builds and enable multi-arch (rpi4 with ubuntu and raspbian buster tested). Add CoreDNS for `PEERDNS=auto` setting. Update the `add-peer`/`show-peer` scripts to utilize the templates and the `INTERNAL_SUBNET` var (previously missed, oops). * **05.04.20:** - Add `INTERNAL_SUBNET` variable to prevent subnet clashes. Add templates for server and peer confs. diff --git a/readme-vars.yml b/readme-vars.yml index 1f921b0..f4752de 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -78,6 +78,7 @@ app_setup_block: | # changelog changelogs: + - { date: "20.04.20:", desc: "Fix typo in client mode conf existence check." } - { date: "13.04.20:", desc: "Fix bug that forced conf recreation on every start." } - { date: "08.04.20:", desc: "Add arm32/64 builds and enable multi-arch (rpi4 with ubuntu and raspbian buster tested). Add CoreDNS for `PEERDNS=auto` setting. Update the `add-peer`/`show-peer` scripts to utilize the templates and the `INTERNAL_SUBNET` var (previously missed, oops)." } - { date: "05.04.20:", desc: "Add `INTERNAL_SUBNET` variable to prevent subnet clashes. Add templates for server and peer confs." } diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 8dc6b48..4fcd154 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -160,7 +160,7 @@ if [ -n "$PEERS" ]; then fi else echo "Client mode selected." - if [ !-f /config/wg0.conf ]; then + if [ ! -f /config/wg0.conf ]; then "No client conf found. Provide your own client conf as \"/config/wg0.conf\" and restart the container." sleep infinity fi