[installer] feature to use custom port
This commit is contained in:
parent
9c829c3d82
commit
bdb704897f
|
@ -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
|
||||
|
||||
|
||||
---
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue