From ad7ff798f2090ae7ba18e4e731dca590ce28874a Mon Sep 17 00:00:00 2001 From: Jean Froment Date: Wed, 1 May 2019 19:57:25 +0200 Subject: [PATCH] Enhance scripts logging --- init.sh | 5 +++-- update-all.sh | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/init.sh b/init.sh index 75d8db1..5b3e299 100755 --- a/init.sh +++ b/init.sh @@ -1,7 +1,8 @@ #!/bin/bash +echo "[$0] Initializing..." +sudo mkdir /opt/traefik sudo touch /opt/traefik/acme.json && sudo chmod 600 /opt/traefik/acme.json cp .env.sample .env -cp tunnel-options.sh.sample tunnel-options.sh -echo "Please edit .env file and tunnel-options.sh" +echo "[$0] Please edit .env file" exit 0 \ No newline at end of file diff --git a/update-all.sh b/update-all.sh index a010659..8817f58 100755 --- a/update-all.sh +++ b/update-all.sh @@ -1,8 +1,8 @@ #!/bin/bash -echo "Pulling all images..." +echo "[$0] ***** Pulling all images... *****" docker-compose pull -echo "Recreating containers if required..." +echo "[$0] ***** Recreating containers if required... *****" docker-compose up -d -echo "Done." +echo "[$0] ***** Done. *****" exit 0 \ No newline at end of file