Skip to content

Commit e4903b8

Browse files
authored
Merge pull request hestiacp#2293 from hestiacp/fix-web-php
Minor corrections
2 parents 0f9c6cb + edb0e27 commit e4903b8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bin/v-add-web-php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ php_fpm="/etc/init.d/php$version-fpm"
3636
# Verify php version format
3737
if [[ ! $version =~ ^[0-9]\.[0-9]+ ]]; then
3838
echo "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
39-
echo "Example: 7.0, 7.4, 8.0"
39+
echo "Example: 7.0, 7.4, 8.0"
4040
exit "$E_INVALID";
4141
fi
4242

@@ -62,9 +62,8 @@ check_hestia_demo_mode
6262

6363
mph="php$version-common php$version-mbstring php$version-bcmath php$version-cli php$version-curl
6464
php$version-fpm php$version-gd php$version-intl php$version-mysql
65-
php$version-soap php$version-xml php$version-zip php$version-mbstring
66-
php$version-json php$version-bz2 php$version-pspell php$version-imagick php$version-pgsql
67-
php$version-imap php$version-ldap"
65+
php$version-soap php$version-xml php$version-zip php$version-json php$version-bz2
66+
php$version-pspell php$version-imagick php$version-pgsql php$version-imap php$version-ldap"
6867

6968
# Check is version is 7.1 or below to add mcrypt
7069
if [[ `echo "$version 7.2" | awk '{print ($1 < $2)}'` == 1 ]]; then
@@ -101,7 +100,7 @@ done
101100
# Do a blank echo to get the \n back
102101
echo
103102

104-
# Check if installation was sucessfully
103+
# Check if installation was successful
105104
if [ ! -f "$php_fpm" ]; then
106105
echo "ERROR: Installation failed, please run the following command manually for debugging:"
107106
echo "apt-get install $mph"

0 commit comments

Comments
 (0)