From 22a3d48c9ff7a0e249a808001cae0e19a7c9b193 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 20 May 2018 22:13:05 +0200 Subject: [PATCH] Fixing update - "exit 0" when explicit updating Friendica --- develop/apache/entrypoint.sh | 3 +++ develop/fpm-alpine/entrypoint.sh | 3 +++ develop/fpm/entrypoint.sh | 3 +++ stable/apache/entrypoint.sh | 3 +++ stable/fpm-alpine/entrypoint.sh | 3 +++ stable/fpm/entrypoint.sh | 3 +++ 6 files changed, 18 insertions(+) diff --git a/develop/apache/entrypoint.sh b/develop/apache/entrypoint.sh index fc1504d..2d8582d 100644 --- a/develop/apache/entrypoint.sh +++ b/develop/apache/entrypoint.sh @@ -89,7 +89,10 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then # TODO Workaround because of a strange permission issue rm -fr $WORKDIR/view/smarty3/compiled elif [ "$1" = "update" ]; then + echo "Updating Friendica" console "dbstructure update" + + exit 0 fi fi fi diff --git a/develop/fpm-alpine/entrypoint.sh b/develop/fpm-alpine/entrypoint.sh index fc1504d..2d8582d 100644 --- a/develop/fpm-alpine/entrypoint.sh +++ b/develop/fpm-alpine/entrypoint.sh @@ -89,7 +89,10 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then # TODO Workaround because of a strange permission issue rm -fr $WORKDIR/view/smarty3/compiled elif [ "$1" = "update" ]; then + echo "Updating Friendica" console "dbstructure update" + + exit 0 fi fi fi diff --git a/develop/fpm/entrypoint.sh b/develop/fpm/entrypoint.sh index fc1504d..2d8582d 100644 --- a/develop/fpm/entrypoint.sh +++ b/develop/fpm/entrypoint.sh @@ -89,7 +89,10 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then # TODO Workaround because of a strange permission issue rm -fr $WORKDIR/view/smarty3/compiled elif [ "$1" = "update" ]; then + echo "Updating Friendica" console "dbstructure update" + + exit 0 fi fi fi diff --git a/stable/apache/entrypoint.sh b/stable/apache/entrypoint.sh index fc1504d..2d8582d 100644 --- a/stable/apache/entrypoint.sh +++ b/stable/apache/entrypoint.sh @@ -89,7 +89,10 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then # TODO Workaround because of a strange permission issue rm -fr $WORKDIR/view/smarty3/compiled elif [ "$1" = "update" ]; then + echo "Updating Friendica" console "dbstructure update" + + exit 0 fi fi fi diff --git a/stable/fpm-alpine/entrypoint.sh b/stable/fpm-alpine/entrypoint.sh index fc1504d..2d8582d 100644 --- a/stable/fpm-alpine/entrypoint.sh +++ b/stable/fpm-alpine/entrypoint.sh @@ -89,7 +89,10 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then # TODO Workaround because of a strange permission issue rm -fr $WORKDIR/view/smarty3/compiled elif [ "$1" = "update" ]; then + echo "Updating Friendica" console "dbstructure update" + + exit 0 fi fi fi diff --git a/stable/fpm/entrypoint.sh b/stable/fpm/entrypoint.sh index fc1504d..2d8582d 100644 --- a/stable/fpm/entrypoint.sh +++ b/stable/fpm/entrypoint.sh @@ -89,7 +89,10 @@ if [ ! -f $WORKDIR/VERSION -o "$1" = "update" ]; then # TODO Workaround because of a strange permission issue rm -fr $WORKDIR/view/smarty3/compiled elif [ "$1" = "update" ]; then + echo "Updating Friendica" console "dbstructure update" + + exit 0 fi fi fi