Skip to content
Snippets Groups Projects
Commit be7a0210 authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge branch '1105-set-instance-name' into 'main'

Resolve "Set instance name"

Closes #1105

See merge request !594
parents 3a3d06a3 0a038ff5
No related branches found
No related tags found
1 merge request!594Resolve "Set instance name"
Pipeline #47033 passed with stages
in 11 minutes and 10 seconds
...@@ -163,6 +163,17 @@ data: ...@@ -163,6 +163,17 @@ data:
# Config settings from the configmap above # Config settings from the configmap above
run_as "php $occ config:import /var/local/config.json" run_as "php $occ config:import /var/local/config.json"
{{- if .Values.theming.name }}
current=$(run_as "php $occ theming:config name")
if [ "$current" == "name is currently not set" ]
then
echo "Setting instance name."
run_as "php $occ theming:config name "{{ printf "%q" (printf "%q" .Values.theming.name) }}
else
echo "Instance name is already set, not changing."
fi
{{- end }}
echo "Updating database indices, columns, keys, etc." echo "Updating database indices, columns, keys, etc."
run_as "php $occ db:add-missing-indices --no-interaction" run_as "php $occ db:add-missing-indices --no-interaction"
run_as "php $occ db:add-missing-columns --no-interaction" run_as "php $occ db:add-missing-columns --no-interaction"
......
...@@ -92,3 +92,6 @@ rabbitmq: ...@@ -92,3 +92,6 @@ rabbitmq:
scim: scim:
url: "https://files.example.com/index.php/apps/scimserviceprovider/" url: "https://files.example.com/index.php/apps/scimserviceprovider/"
token: JWT token token: JWT token
theming:
name: "Our file server"
...@@ -254,3 +254,5 @@ tests: ...@@ -254,3 +254,5 @@ tests:
suspicious_login: suspicious_login:
twofactor_totp: twofactor_totp:
user_ldap: user_ldap:
theming: {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment