Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iml-backup
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
Container registry
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
IML Open Source
iml-backup
Commits
3b69a5b3
Commit
3b69a5b3
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add check for security file
parent
d38e687b
Branches
Branches containing commit
No related tags found
1 merge request
!129
Db Profiles
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/localdump/couchdb2.sh
+12
-6
12 additions, 6 deletions
plugins/localdump/couchdb2.sh
with
12 additions
and
6 deletions
plugins/localdump/couchdb2.sh
+
12
−
6
View file @
3b69a5b3
...
@@ -473,12 +473,18 @@ function restoreByFile(){
...
@@ -473,12 +473,18 @@ function restoreByFile(){
h2 add security infos ...
h2 add security infos ...
# todo: this will fail when restoring from "deleted_databases" folder
# todo: this will fail when restoring from "deleted_databases" folder
SECURITYFILE
=
"
${
ARCHIVE_DIR
}
/security/__security__
${
_sourceDB
}
.json"
SECURITYFILE
=
"
${
ARCHIVE_DIR
}
/security/__security__
${
_sourceDB
}
.json"
SECDATA
=
"
$(
cat
$SECURITYFILE
)
"
if
[
-f
"
$SECURITYFILE
"
]
;
then
color cmd
SECDATA
=
"
$(
cat
$SECURITYFILE
)
"
echo
"add security data:
$SECDATA
"
color cmd
_couchapi PUT
"
${
dbname
}
/_security"
"
$SECDATA
"
echo
"add security data:
$SECDATA
"
fetchrc
_couchapi PUT
"
${
dbname
}
/_security"
"
$SECDATA
"
color reset
fetchrc
color reset
else
color warning
echo
"WARNING: no security data file was found:
$SECURITYFILE
"
color reset
fi
echo
echo
...
...
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