From 72e0151f503c631a2820c59b2850b8064d67fc2f Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 7 Apr 2020 19:58:25 +0200 Subject: [PATCH] tuto3: don't consider empty file as valid token --- tuto3.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tuto3.yml b/tuto3.yml index 4672b9d..789b20c 100644 --- a/tuto3.yml +++ b/tuto3.yml @@ -479,7 +479,8 @@ files: - path: /usr/sbin/join-p0m contents: | - [ -f "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it it you continue." + #!/bin/sh + [ -s "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it it you continue." echo -n "Please copy your token here: " read WGTOKEN mkdir -p /var/lib/adlin/wireguard/