From bdb704897f58f423674972049995a0da6f979893 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 10 Jun 2018 18:26:05 +0200 Subject: [PATCH] [installer] feature to use custom port --- README.md | 4 ++-- install-scripts/installer | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e04e5b..73dff57 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ Launch the following command in your favorite terminal : bash -c "`curl https://xdrm.io/script/ptut-installer`" -i ``` **TODO** -1. fix unstable `npm` issue for newer versions (vulnerability check) -2. implement feature to choose custom port +[ ] fix unstable `npm` issue for newer versions (vulnerability check) +[x] implement feature to choose custom port --- diff --git a/install-scripts/installer b/install-scripts/installer index bd0d4c3..b77d611 100644 --- a/install-scripts/installer +++ b/install-scripts/installer @@ -353,6 +353,12 @@ else exit 1; fi; +# 3. Set custom port +inline_progress " . port $port"; +cat ./$host/docker-compose.yml | sed "s/8080:80/$port:80/" > /tmp/docker-compose-new-port; +mv /tmp/docker-compose-new-port ./$host/docker-compose.yml; +echo "ok"; + # (8) make installer #--------------------------------------------------------# echo;