only initialize / update when the command is apache* or php-fpm (do nothing on thins like bash, echo)

This commit is contained in:
Marc Brückner 2018-09-13 14:36:50 +02:00
parent f5d3234fca
commit a3cce50b00
10 changed files with 680 additions and 660 deletions

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"

View File

@ -19,6 +19,7 @@ run_as() {
fi
}
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
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi
fi
fi
exec "$@"