From efe4edb8eb34d104c5d685b1884246e78927b5a0 Mon Sep 17 00:00:00 2001 From: Marc Bihlmaier <30314040+rdxmb@users.noreply.github.com> Date: Sat, 29 Sep 2018 20:15:08 +0200 Subject: [PATCH] echo to stdout when migration-script is running (#333) * echo to stdout when migration-script is running * specifying output * output Initializing new instance * simplify output --- 12.0/apache/entrypoint.sh | 3 +++ 12.0/fpm-alpine/entrypoint.sh | 3 +++ 12.0/fpm/entrypoint.sh | 3 +++ 13.0/apache/entrypoint.sh | 3 +++ 13.0/fpm-alpine/entrypoint.sh | 3 +++ 13.0/fpm/entrypoint.sh | 3 +++ 14.0/apache/entrypoint.sh | 3 +++ 14.0/fpm-alpine/entrypoint.sh | 3 +++ 14.0/fpm/entrypoint.sh | 3 +++ docker-entrypoint.sh | 3 +++ 10 files changed, 30 insertions(+) diff --git a/12.0/apache/entrypoint.sh b/12.0/apache/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/12.0/apache/entrypoint.sh +++ b/12.0/apache/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/12.0/fpm-alpine/entrypoint.sh b/12.0/fpm-alpine/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/12.0/fpm-alpine/entrypoint.sh +++ b/12.0/fpm-alpine/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/12.0/fpm/entrypoint.sh b/12.0/fpm/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/12.0/fpm/entrypoint.sh +++ b/12.0/fpm/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/13.0/apache/entrypoint.sh b/13.0/apache/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/13.0/apache/entrypoint.sh +++ b/13.0/apache/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/13.0/fpm-alpine/entrypoint.sh b/13.0/fpm-alpine/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/13.0/fpm-alpine/entrypoint.sh +++ b/13.0/fpm-alpine/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/13.0/fpm/entrypoint.sh b/13.0/fpm/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/13.0/fpm/entrypoint.sh +++ b/13.0/fpm/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/14.0/apache/entrypoint.sh b/14.0/apache/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/14.0/apache/entrypoint.sh +++ b/14.0/apache/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/14.0/fpm-alpine/entrypoint.sh b/14.0/fpm-alpine/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/14.0/fpm-alpine/entrypoint.sh +++ b/14.0/fpm-alpine/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/14.0/fpm/entrypoint.sh b/14.0/fpm/entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/14.0/fpm/entrypoint.sh +++ b/14.0/fpm/entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index f6c5d475..c31db1a1 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -34,7 +34,9 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then fi if version_greater "$image_version" "$installed_version"; then + echo "Initializing nextcloud $image_version ..." if [ "$installed_version" != "0.0.0.0" ]; then + echo "Upgrading nextcloud from $installed_version ..." run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_before fi if [ "$(id -u)" = 0 ]; then @@ -49,6 +51,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then rsync $rsync_options --include "/$dir/" --exclude '/*' /usr/src/nextcloud/ /var/www/html/ fi done + echo "Initializing finished" #install if [ "$installed_version" = "0.0.0.0" ]; then