Enhance scripts logging
This commit is contained in:
parent
32681a9c74
commit
ad7ff798f2
5
init.sh
5
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
|
|
@ -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
|
Loading…
Reference in New Issue