From 6626385965ad13360e206790212b47ac942a8804 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 11 Apr 2021 11:32:25 +0200 Subject: [PATCH] On update ommit update apps because it is done within main update procedure. --- update_nextcloud.sh | 750 ++++++++++++++++++++++---------------------- 1 file changed, 375 insertions(+), 375 deletions(-) diff --git a/update_nextcloud.sh b/update_nextcloud.sh index 35d5c4d..44b4c5e 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -858,381 +858,381 @@ fi -# ----- -# - (Re)install/(Re)enable some more nextcloud apps -# ----- - -echo "" -echo "" -echo -e "\033[37m\033[1m(Re)install/(Re)enable some more nextcloud apps..\033[m" -echo "" - - -# - Install and enable nextcloud app 'calendar' -# - -_app="calendar" - -echononl "Install nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi -fi - -echononl "Eanable nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." -fi - - -blank_line - - -# - Install and enable nextcloud app 'contacts' -# - -_app="contacts" - -echononl "Install nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi -fi - -echononl "Eanable nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." -fi - - -blank_line - - -# - Install and enable nextcloud app 'notes' -# - -_app="notes" - -echononl "Install nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi -fi - -echononl "Eanable nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." -fi - - -blank_line - - -# - Install and enable nextcloud app 'tasks' -# - -_app="tasks" - -echononl "Install nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 - -if [[ $? -eq 0 ]]; then - echo_ok -else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi -fi - -echononl "Eanable nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." -fi - - -blank_line - - - -if $INSTALL_COLABORA_ONLINE_APP ; then - # - Install and enable nextcloud app 'richdocuments' - # - - _app="richdocuments" - - echononl "Install nextcloud app '$_app'.." - sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 - if [[ $? -eq 0 ]]; then - echo_ok - else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi - fi - - echononl "Eanable nextcloud app '$_app'.." - sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 - if [[ $? -eq 0 ]]; then - echo_ok - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi - - - echononl "Configure nextcloud app '$_app'.." - if [[ -z "$WOPI_URL" ]] ; then - echo_skipped - error "No Wopi URL given (variable 'WOPI_URL')." - else - sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:app:set richdocuments wopi_url --value="$WOPI_URL" >> $log_file 2>&1 - if [[ $? -eq 0 ]]; then - echo_ok - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi - fi -fi - - -blank_line - - -# - Install and enable nextcloud app 'bruteforcesettings' -# - -_app="bruteforcesettings" - -echononl "Install nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi -fi - -echononl "Eanable nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 - -if [[ $? -eq 0 ]]; then - echo_ok -else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." -fi - - -# - Install and enable nextcloud app 'announcementcenter' -# - -_app="announcementcenter" - -echononl "Install nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 -if [[ $? -eq 0 ]]; then - echo_ok -else - if grep -q -E "${_app}\s+already\s+installed" $log_file ; then - echo_skipped - warn "$(cat $log_file)" - else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." - fi -fi - -echononl "Eanable nextcloud app '$_app'.." -sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 - -if [[ $? -eq 0 ]]; then - echo_ok -else - echo_failed - error "$(cat $log_file)" - - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/no]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Interrupted by user." -fi +## ----- +## - (Re)install/(Re)enable some more nextcloud apps +## ----- +# +#echo "" +#echo "" +#echo -e "\033[37m\033[1m(Re)install/(Re)enable some more nextcloud apps..\033[m" +#echo "" +# +# +## - Install and enable nextcloud app 'calendar' +## - +#_app="calendar" +# +#echononl "Install nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +#fi +# +#echononl "Eanable nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +#fi +# +# +#blank_line +# +# +## - Install and enable nextcloud app 'contacts' +## - +#_app="contacts" +# +#echononl "Install nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +#fi +# +#echononl "Enable nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +#fi +# +# +#blank_line +# +# +## - Install and enable nextcloud app 'notes' +## - +#_app="notes" +# +#echononl "Install nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +#fi +# +#echononl "Eanable nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +#fi +# +# +#blank_line +# +# +## - Install and enable nextcloud app 'tasks' +## - +#_app="tasks" +# +#echononl "Install nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +# +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +#fi +# +#echononl "Eanable nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +#fi +# +# +#blank_line +# +# +# +#if $INSTALL_COLABORA_ONLINE_APP ; then +# # - Install and enable nextcloud app 'richdocuments' +# # - +# _app="richdocuments" +# +# echononl "Install nextcloud app '$_app'.." +# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +# if [[ $? -eq 0 ]]; then +# echo_ok +# else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +# fi +# +# echononl "Eanable nextcloud app '$_app'.." +# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +# if [[ $? -eq 0 ]]; then +# echo_ok +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +# +# +# echononl "Configure nextcloud app '$_app'.." +# if [[ -z "$WOPI_URL" ]] ; then +# echo_skipped +# error "No Wopi URL given (variable 'WOPI_URL')." +# else +# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:app:set richdocuments wopi_url --value="$WOPI_URL" >> $log_file 2>&1 +# if [[ $? -eq 0 ]]; then +# echo_ok +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +# fi +#fi +# +# +#blank_line +# +# +## - Install and enable nextcloud app 'bruteforcesettings' +## - +#_app="bruteforcesettings" +# +#echononl "Install nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +#fi +# +#echononl "Eanable nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +# +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +#fi +# +# +## - Install and enable nextcloud app 'announcementcenter' +## - +#_app="announcementcenter" +# +#echononl "Install nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1 +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then +# echo_skipped +# warn "$(cat $log_file)" +# else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +# fi +#fi +# +#echononl "Eanable nextcloud app '$_app'.." +#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1 +# +#if [[ $? -eq 0 ]]; then +# echo_ok +#else +# echo_failed +# error "$(cat $log_file)" +# +# echononl "continue anyway [yes/no]: " +# read OK +# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" +# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do +# echononl "Wrong entry! - repeat [yes/no]: " +# read OK +# done +# [[ $OK = "yes" ]] || fatal "Interrupted by user." +#fi # -----