Merge pull request #6482 from ZhaoGY-N/bugfix/appstoreurl_check_fail

change the url used in appstore check from $APPSTORE_URL to $APPSTORE…
This commit is contained in:
Simon L. 2025-06-10 09:46:37 +02:00 committed by GitHub
commit 6c4c4f1f56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,7 +150,8 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
APPSTORE_URL="$(grep appstoreurl /var/www/html/config/config.php | grep -oP 'https://.*v[0-9]+')" APPSTORE_URL="$(grep appstoreurl /var/www/html/config/config.php | grep -oP 'https://.*v[0-9]+')"
set +x set +x
fi fi
CURL_STATUS="$(curl -LI "$APPSTORE_URL" -o /dev/null -w '%{http_code}\n' -s)" # Default appstoreurl parameter in config.php defaults to 'https://apps.nextcloud.com/api/v1' so we check for the apps.json file stored in there
CURL_STATUS="$(curl -LI "$APPSTORE_URL"/apps.json -o /dev/null -w '%{http_code}\n' -s)"
if [[ "$CURL_STATUS" = "200" ]] if [[ "$CURL_STATUS" = "200" ]]
then then
echo "Appstore is reachable" echo "Appstore is reachable"