Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nextcloud-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
shore
nextcloud-docker
Commits
24ce5c3e
Commit
24ce5c3e
authored
2 months ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Upgrade MariaDB.
parent
8f088eb4
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4344
failed
2 months ago
Stage: .pre
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
crond/backup
+1
-1
1 addition, 1 deletion
crond/backup
crond/restore
+2
-2
2 additions, 2 deletions
crond/restore
with
4 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
1
View file @
24ce5c3e
...
...
@@ -18,7 +18,7 @@ run:
tags
:
*tags
after_script
:
# yamllint disable rule:line-length
-
docker-compose exec mysql sh -c 'm
ysql_
upgrade -u root "--password=$MYSQL_ROOT_PASSWORD" --default-character-set=utf8mb4'
-
docker-compose exec mysql sh -c 'm
ariadb-
upgrade -u root "--password=$MYSQL_ROOT_PASSWORD" --default-character-set=utf8mb4'
-
docker-compose exec -u www-data nextcloud php occ db:add-missing-columns
-
docker-compose exec -u www-data nextcloud php occ db:add-missing-indices
-
docker-compose exec -u www-data nextcloud php occ db:add-missing-primary-keys
...
...
This diff is collapsed.
Click to expand it.
crond/backup
+
1
−
1
View file @
24ce5c3e
...
...
@@ -31,7 +31,7 @@ nc_run find -maxdepth 1 -mindepth 1 \! -name "$tmpdir" -exec \
# shellcheck disable=SC2016
db_run sh
-c
\
'm
ysql
dump --single-transaction --default-character-set=utf8mb4 --routines --add-drop-database --force "--password=$MYSQL_ROOT_PASSWORD" --user=root --databases "$MYSQL_DATABASE"'
|
\
'm
ariadb-
dump --single-transaction --default-character-set=utf8mb4 --routines --add-drop-database --force "--password=$MYSQL_ROOT_PASSWORD" --user=root --databases "$MYSQL_DATABASE"'
|
\
zstd
-o
"
$dest
/mysqldump.sql.zstd"
&
wait
...
...
This diff is collapsed.
Click to expand it.
crond/restore
+
2
−
2
View file @
24ce5c3e
...
...
@@ -4,14 +4,14 @@ set -eux
src
=
"
$1
"
alias
nc_run
=
'docker exec -iu www-data nextcloud-nextcloud-1'
alias
db_run
=
'docker exec -iu nobody nextcloud
_
mysql
_
1'
alias
db_run
=
'docker exec -iu nobody nextcloud
-
mysql
-
1'
nc_run php occ maintenance:mode
--on
# shellcheck disable=SC2016
zstdcat
"
$src
/mysqldump.sql.zstd"
|
\
db_run sh
-c
\
'--force "--password=$MYSQL_ROOT_PASSWORD" --user=root"'
'
mariadb
--force "--password=$MYSQL_ROOT_PASSWORD" --user=root"'
zstdcat
"
$src
/nextcloud_volume.tar.zstd"
|
\
nc_run
tar
-x
...
...
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