You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
505 B
Bash
25 lines
505 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. apps.config
|
|
|
|
read -r -a APP_CONFIGS <<< "$APP_CONFIGS"
|
|
|
|
nextcloud_subdomain=
|
|
|
|
for config_string in ${APP_CONFIGS[@]}; do
|
|
IFS=','
|
|
read -r -a config <<< "$config_string"
|
|
|
|
app=${config[0]}
|
|
subdomain=${config[1]}
|
|
|
|
if [ "$app" = "nextcloud" ]; then
|
|
nextcloud_subdomain="$subdomain"
|
|
fi
|
|
done
|
|
|
|
echo "DOMAIN=\"$nextcloud_subdomain.$ROOT_DOMAIN\"" > all-apps/nextcloud/nextcloud.env
|
|
cat all-apps/nextcloud/nextcloud.env.tmpl >> all-apps/nextcloud/nextcloud.env
|