Skip to content
Snippets Groups Projects
Commit 59e01ca1 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

fix: migration to fix oo after nc 26

parent 7875b683
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
kubectl get deploy -A -l app.kubernetes.io/name=nextcloud --no-headers -o custom-columns=NAMESPACE:metadata.namespace,NAME:metadata.name | while read line; do
ns=$(echo $line | cut -f 1 -d ' ')
name=$(echo $line | cut -f 2 -d ' ')
if kubectl -n $ns exec deploy/$name -c app -- sh -c '/usr/local/bin/php occ config:app:get onlyoffice settings_error --default-value=nosettingserror 2>/dev/null' | grep SSL; then
echo fixing $ns
kubectl -n $ns exec deploy/$name -c app -- sh -c '/usr/local/bin/php occ config:app:set onlyoffice settings_error --value ""'
fi
done
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