Skip to content

Set urls based on market#118

Open
bromiesTM wants to merge 1 commit into
ionos-dev-v30from
kh/dev/market-specific-urls
Open

Set urls based on market#118
bromiesTM wants to merge 1 commit into
ionos-dev-v30from
kh/dev/market-specific-urls

Conversation

@bromiesTM
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Kai Henseler <kai.henseler@strato.de>
@bromiesTM bromiesTM force-pushed the kh/dev/market-specific-urls branch from 1d78f0b to 64766bf Compare June 3, 2026 09:51
@bromiesTM bromiesTM changed the title refactor: Replace hardcoded IONOS links with environment variables Set urls based on marked Jun 3, 2026
@bromiesTM bromiesTM changed the title Set urls based on marked Set urls based on market Jun 3, 2026
Comment thread configure.sh
echo "Configure nc_ionos_processes app"

if [ -z "${IONOS_PROCESSES_API_URL}" ] || [ -z "${IONOS_PROCESSES_USER}" ] || [ -z "${IONOS_PROCESSES_PASS}" ]; then
echo "\033[1;33mWarning: IONOS_PROCESSES_API_URL, IONOS_PROCESSES_USER or IONOS_PROCESSES_PASS not set, skipping configuration of nc_ionos_processes app\033[0m"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please "refactor" to use log_warning() here

Comment thread configure.sh
echo "Configure serverinfo app"

if [ -z "${NC_APP_SERVERINFO_TOKEN}" ]; then
echo "\033[1;33mWarning: NC_APP_SERVERINFO_TOKEN not set, skipping configuration of serverinfo app\033[0m"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please "refactor" to use log_warning() here

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds market-based configuration for IONOS-related URLs by setting Nextcloud system config values during configure.sh execution, and removes previously hardcoded link defaults from the shipped config partial.

Changes:

  • Introduce set_market_links() to select URL targets based on MARKET (FR/DE/ES/UK/IT, defaulting to DE).
  • Persist the selected URLs into Nextcloud system config via occ config:system:set, and set the theming “url” accordingly.
  • Remove static IONOS link entries from configs/ionos-links.config.php so they are no longer fixed to a single market.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
configure.sh Adds market switch logic and writes market-specific links into Nextcloud system config during configuration.
configs/ionos-links.config.php Removes hardcoded market-specific link defaults, leaving only non-market-specific entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread configure.sh
Comment on lines +63 to +68
IT)
IONOS_WEBMAIL_TARGET_LINK="https://email.ionos.it/"
IONOS_HELP_TARGET_LINK="https://wl.hidrive.com/easy/0037"
IONOS_CUSTOMCLIENT_ANDROID="https://wl.hidrive.com/easy/0033"
IONOS_CUSTOMCLIENT_IOS="https://wl.hidrive.com/easy/00311"
IONOS_HOMEPAGE="https://ionos.it/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants