From e502bd19655326b377a4e416fd6cc0403fc707d5 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 5 May 2019 00:46:23 +0200 Subject: [PATCH] update_nextcloud.sh: some minor fixes at script output. --- update_nextcloud.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/update_nextcloud.sh b/update_nextcloud.sh index 4f9d40e..641d600 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -428,6 +428,16 @@ PRIOR_VERSION=`basename $CURRENT_INSTALL_DIR | cut -d"-" -f2` DATA_DIR=${WEB_BASE_DIR}/data-${VERSION} INSTALL_DIR=${WEB_BASE_DIR}/nextcloud-${VERSION} + +# ----- +# - Do some pre-update tasks.. +# ----- + +echo "" +echo "" +echo -e "\033[37m\033[1mDo some pre-update tasks..\033[m" +echo "" + echononl " Create source directory.." if [[ ! -d "${SRC_BASE_DIR}" ]]; then mkdir ${SRC_BASE_DIR} > $log_file 2>&1 @@ -441,15 +451,6 @@ else echo_skipped fi -#echononl " Change into ${SRC_BASE_DIR}" -#cd ${SRC_BASE_DIR} > $log_file 2>&1 -#if [[ $? -eq 0 ]]; then -# echo_ok -#else -# echo_failed -# fatal "$(cat $log_file)" -#fi - # - downloud nextcloud source # - @@ -561,6 +562,9 @@ elif [[ "$DATABASE_TYPE" = 'postgres' ]]; then fi fi +echo + + # - Erstelle Web-Verzeichnis für die neue OwnCloud Version # - echononl " Create (new) dir '${WEB_BASE_DIR}/nextcloud-${VERSION}'.."