Somer minor changes on output of scripts 'install_roundcube.sh' and 'upgrade_roundcube.sh'.

This commit is contained in:
Christoph 2017-11-09 04:55:08 +01:00
parent 85ea900d18
commit a6ad519b9b
2 changed files with 15 additions and 2 deletions

View File

@ -293,10 +293,17 @@ fi
# - Determin PHP of all installed versions
# -
echononl "\tGet major version of all installed PHP versions"
if $PHP_DEBIAN_INSTALLATION ; then
echononl "\tGet major version of installed PHP"
php_major_version="$(php --version | head -1 | cut -d' ' -f2 | cut -d '-' -f1 | cut -d'.' -f1,2)"
if [[ -z "$php_major_version" ]]; then
echo_failed
error "Getting major version of installed PHP versions failed! No installed PHP versiond found!"
else
echo_ok
fi
else
echononl "\tGet major version of all installed PHP versions"
php_major_versions=`find /usr/local/ -maxdepth 1 -mindepth 1 -type l -name "php-*" -print | cut -d "-" -f2 | sort`
if [[ -z "$php_major_versions" ]]; then
echo_failed

View File

@ -357,8 +357,14 @@ fi
# - Determin PHP of all installed versions
# -
if $PHP_DEBIAN_INSTALLATION ; then
echononl " Get installed PHP versions"
echononl " Get get major version installed PHP"
php_major_version="$(php --version | head -1 | cut -d' ' -f2 | cut -d '-' -f1 | cut -d'.' -f1,2)"
if [[ -z "$php_major_version" ]]; then
echo_failed
error "Getting version numbers of installed PHP versions failed! No installed PHP versiond found!"
else
echo_ok
fi
else
echononl " Get major version of all installed PHP versions"
php_major_versions="$(find /usr/local/ -maxdepth 1 -mindepth 1 -type l -name "php-*" -print | cut -d "-" -f2 | sort)"