0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-05 22:04:58 +01:00

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 fi
} }
if expr "$1" : "apache*" 1>/dev/null || [ "$1" = "php-fpm" ]; then
installed_version="0.0.0.0" installed_version="0.0.0.0"
if [ -f /var/www/html/version.php ]; then if [ -f /var/www/html/version.php ]; then
# shellcheck disable=SC2016 # shellcheck disable=SC2016
@ -97,5 +98,6 @@ if version_greater "$image_version" "$installed_version"; then
fi fi
fi fi
fi
exec "$@" exec "$@"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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