update_nextcloud.sh: some minor fixes at script output.

This commit is contained in:
Christoph 2019-05-05 00:46:23 +02:00
parent dd2ffc048d
commit e502bd1965

View File

@ -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}'.."