Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
common
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
kubernetes
common
Commits
59e01ca1
Commit
59e01ca1
authored
1 year ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
fix: migration to fix oo after nc 26
parent
7875b683
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migrations/2023-09-25-fix-oo-after-nc-26.sh
+10
-0
10 additions, 0 deletions
migrations/2023-09-25-fix-oo-after-nc-26.sh
with
10 additions
and
0 deletions
migrations/2023-09-25-fix-oo-after-nc-26.sh
0 → 100644
+
10
−
0
View file @
59e01ca1
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment