[installer] feature to use custom port

This commit is contained in:
Adrien Marquès 2018-06-10 18:26:05 +02:00
parent 9c829c3d82
commit bdb704897f
2 changed files with 8 additions and 2 deletions

View File

@ -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
---

View File

@ -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;