Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
a8c5734f
Commit
a8c5734f
authored
19 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
pgsql: postgres user UID is now the one from inside the vserver if necessary
parent
806d9765
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
handlers/pgsql
+5
-1
5 additions, 1 deletion
handlers/pgsql
with
6 additions
and
1 deletion
ChangeLog
+
1
−
0
View file @
a8c5734f
...
...
@@ -14,6 +14,7 @@ version 0.9.4 -- unreleased
. Fixed inversed vsname emptiness check
. Fixed su quote usage to be more posixy
. Fixed shell expansion, thanks Thomas Kotzian (Closes: #363297)
. postgres user UID is now the one from inside the vserver if necessary
svn:
. Fixed inversed vsname emptiness check
rdiff:
...
...
This diff is collapsed.
Click to expand it.
handlers/pgsql
+
5
−
1
View file @
a8c5734f
...
...
@@ -61,7 +61,11 @@ fi
# give backup dir the good uid and permissions
# (in respect to the vserver, if $usevserver = yes)
if
[
$usevserver
=
yes
]
;
then
pguid
=
`
$VSERVER
$vsname
exec
getent passwd postgres |
awk
-F
:
'{print $3}'
`
else
pguid
=
`
getent passwd postgres |
awk
-F
:
'{print $3}'
`
fi
[
-n
"
$pguid
"
]
||
\
fatal
"No user called postgres
`
[
$usevserver
=
no
]
||
echo
\"
on vserver
$vsname
\"
`
."
debug
"chown
$pguid
$vroot$backupdir
"
...
...
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