From 87c651374ebed8fd4031f215607f56a909114b93 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Mon, 17 Apr 2017 22:57:48 +0200 Subject: [PATCH] run occ upgrade --- 10.0/apache/docker-entrypoint.sh | 4 ++++ 10.0/fpm/docker-entrypoint.sh | 4 ++++ 11.0/apache/docker-entrypoint.sh | 4 ++++ 11.0/fpm/docker-entrypoint.sh | 4 ++++ 9.0/apache/docker-entrypoint.sh | 4 ++++ 9.0/fpm/docker-entrypoint.sh | 4 ++++ docker-entrypoint.sh | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/10.0/apache/docker-entrypoint.sh b/10.0/apache/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/10.0/apache/docker-entrypoint.sh +++ b/10.0/apache/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@" diff --git a/10.0/fpm/docker-entrypoint.sh b/10.0/fpm/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/10.0/fpm/docker-entrypoint.sh +++ b/10.0/fpm/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@" diff --git a/11.0/apache/docker-entrypoint.sh b/11.0/apache/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/11.0/apache/docker-entrypoint.sh +++ b/11.0/apache/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@" diff --git a/11.0/fpm/docker-entrypoint.sh b/11.0/fpm/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/11.0/fpm/docker-entrypoint.sh +++ b/11.0/fpm/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@" diff --git a/9.0/apache/docker-entrypoint.sh b/9.0/apache/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/9.0/apache/docker-entrypoint.sh +++ b/9.0/apache/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@" diff --git a/9.0/fpm/docker-entrypoint.sh b/9.0/fpm/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/9.0/fpm/docker-entrypoint.sh +++ b/9.0/fpm/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 01213c03..44bc1c06 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -31,6 +31,10 @@ if version_greater "$image_version" "$installed_version"; then done chown -R www-data /var/www/html + + if [ "$installed_version" != "0.0.0~unknown" ]; then + su - www-data -s /bin/bash -c 'php /var/www/html/occ upgrade --no-app-disable' + fi fi exec "$@"