fix regex for apache

This commit is contained in:
Marc Brückner 2018-09-14 08:25:49 +02:00
parent a3cce50b00
commit bdc2d3e610
10 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016

View File

@ -19,7 +19,7 @@ run_as() {
fi
}
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016