diff --git a/upgradeAll.sh b/upgradeAll.sh index 62084b4e429cc1e5a2ddb600432eb7be04ddb867..8ba338a06aa6e5feea176c2a229dfec8c481310b 100644 --- a/upgradeAll.sh +++ b/upgradeAll.sh @@ -43,3 +43,10 @@ services="`checkrestart | awk '/^service/{print $2} /^systemctl/{print $3}'` \ $EXTRAS_SERVICES_TO_RESTART" [ ! -z "$services" ] && systemctl restart $services checkrestart +echo -e "\tPlease check that the following services are up and running" +if [ "${WEB_SERVER}" == "apache2" ] +then + apache2ctl -S 2>/dev/null | awk '/namevhost/{print "https://"$4}' | sort -u | grep -v "127.0...1" +else + awk '/^[ \t]*(server_name|server_alias)/{gsub(/;$/, "", $2); print "https://"$2}' /etc/nginx/*-enabled/* | sort -u +fi diff --git a/upgradeNextcloud.sh b/upgradeNextcloud.sh index e7caedc0b240904a9d54df16862691cb5588a5e8..760db36cf73096c26f29ccaa02359097d6efc63e 100644 --- a/upgradeNextcloud.sh +++ b/upgradeNextcloud.sh @@ -89,5 +89,4 @@ then echo "Failed to enable some apps: '$FAILED'" fi echo "Please check difference between old and new .htaccess file" - - +vimdiff $NEXTCLOUD_INSTALL_DIR{,.bak}/.htacess