Skip to content

Commit 5c066bd

Browse files
author
Kristan Kenney
committed
Fix text in v-add-web-php
1 parent b704e1e commit 5c066bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bin/v-add-web-php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,20 @@ php_fpm="/etc/init.d/php$version-fpm"
2828

2929
# Verify php version format
3030
if [[ ! $version =~ ^[0-9]\.[0-9]+ ]]; then
31-
echo "The php version format is invalid, it should look like [0-9].[0-9]..."
31+
echo "The specified PHP version format is invalid, it should look like [0-9].[0-9]."
32+
echo "Example: 7.0, 7.4"
3233
exit
3334
fi
3435

3536
# Check if php version already exists
3637
if [ -f "$php_fpm" ] && [ -f "$HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl" ]; then
37-
echo "Version already installed..."
38+
echo "ERROR: Specified PHP version is already installed."
3839
exit
3940
fi
4041

4142
# Check if php version is supported
4243
if [ ! -f "$HESTIA_INSTALL_DIR/multiphp/$WEB_SYSTEM/PHP-${version//.}.sh" ]; then
43-
echo "Version is currently not supported or does not exist..."
44+
echo "ERROR: Specified PHP version is not supported or does not exist."
4445
exit
4546
fi
4647

@@ -77,7 +78,7 @@ apt-get -y -qq -o Dpkg::Options::="--force-confold" install $mph > /dev/null 2>&
7778
BACK_PID=$!
7879

7980
# Check if package installation is done, print a spinner
80-
echo "Install PHP-$version, please wait..."
81+
echo "Installing PHP-$version, please wait..."
8182
spinner="/-\|"
8283
spin_i=1
8384
while kill -0 $BACK_PID > /dev/null 2>&1 ; do
@@ -90,7 +91,7 @@ echo
9091

9192
# Check if installation was sucessfully
9293
if [ ! -f "$php_fpm" ]; then
93-
echo "Installation failed, please run the following command manualy for debuging:"
94+
echo "ERROR: Installation failed, please run the following command manually for debugging:"
9495
echo "apt-get install $mph"
9596
fi
9697

0 commit comments

Comments
 (0)