nc-init.sh: Skip installation of news app

Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias Knöppler 2024-02-02 01:10:49 +01:00
parent 579ba2d3a4
commit 06af55a5a7
No known key found for this signature in database
GPG Key ID: 3510056072886A8F
2 changed files with 9 additions and 7 deletions

View File

@ -152,12 +152,6 @@ EOF
# we handle this ourselves
ncc app:disable updatenotification
# News dropped support for 32-bit -> https://github.com/nextcloud/news/issues/1423
if ! [[ "$ARCH" =~ armv7 ]]; then
ncc app:install news
ncc app:enable news
fi
# ncp-previewgenerator
local ncver
ncver="$(ncc status 2>/dev/null | grep "version:" | awk '{ print $3 }')"

View File

@ -159,9 +159,17 @@ def test_nextcloud(IP: str, nc_port: str, driver: WebDriver):
if element_warn.is_displayed():
try:
first_error = driver.find_element(By.CSS_SELECTOR, "#postsetupchecks > .errors > li")
except NoSuchElementException:
first_error = None
try:
first_warning = driver.find_element(By.CSS_SELECTOR, "#postsetupchecks > .warnings > li")
except NoSuchElementException:
first_warning = None
if driver.find_element(By.CSS_SELECTOR, "#postsetupchecks > .errors").is_displayed() \
or driver.find_element(By.CSS_SELECTOR, "#postsetupchecks > .warnings").is_displayed():
raise ConfigTestFailure("There have been errors or warnings")
raise ConfigTestFailure("There have been errors or warnings" + f"({first_error.text if first_error is not None else (first_warning.text if first_warning is not None else 'None')})")
infos = driver.find_elements(By.CSS_SELECTOR, "#postsetupchecks > .info > li")
for info in infos: