fixed custom-version install

An issue installing custom versions before v1.4.1.
This commit is contained in:
Cristhian Martínez Ochoa 2018-07-07 17:53:55 -05:00
parent b7e389342a
commit f3bac189b0

2
weby
View file

@ -80,6 +80,8 @@ if [[ -a /opt/webinoly/webinoly.conf ]]; then
fi
else
[[ -n $2 && $2 != "-ver="* ]] && tools_port $2
# Compatibility with old versions - before v1.4.1 we used to declare the tools_port here.
[[ $2 == "-ver="* && webyversion == $ver && ${ver//.} -le 140 ]] && tools_port 22222
newinst="true"
fi