Installer Issues
This commit is contained in:
Cristhian Martínez Ochoa 2019-07-14 22:08:00 -06:00
parent 1ae750f309
commit 8c5000cca1
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
readonly app_version="1.8.2"
readonly app_version="1.8.3"
readonly svr_version="1.3"
readonly os_ubuntu_supported=(xenial bionic)
readonly php_supported=(7.1 7.2 7.3)

3
weby
View file

@ -23,8 +23,7 @@ fi
# Prevent "compulsive" re-installation if you currently have the latest version installed.
checkver=$(wget --timeout=10 -t 1 -qO- https://api.webinoly.com/check?text=true)
if [[ -a /opt/webinoly/webinoly.conf && $2 != "-ver=beta" && $2 != "-ver=alpha" ]]; then
source /opt/webinoly/lib/general
currentver=$(conf_read app-version)
currentver=$(grep -w "^app-version:.*" /opt/webinoly/webinoly.conf | cut -f 2 -d ':')
if [[ -n $checkver && -n $currentver && ${checkver//.} -le ${currentver//.} ]]; then
echo "${gre}You currently have the latest version!${end}"