Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos
Commits
97bba911
Commit
97bba911
authored
Mar 11, 2013
by
Marco Mariani
Committed by
Kazuhiko Shiozaki
Mar 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow slapuser# to connect as postgres user
parent
7ccfb802
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
slapos/recipe/postgres/__init__.py
slapos/recipe/postgres/__init__.py
+1
-1
slapos/recipe/postgres/backup.py
slapos/recipe/postgres/backup.py
+2
-0
No files found.
slapos/recipe/postgres/__init__.py
View file @
97bba911
...
@@ -154,7 +154,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -154,7 +154,7 @@ class Recipe(GenericBaseRecipe):
'# TYPE DATABASE USER ADDRESS METHOD'
,
'# TYPE DATABASE USER ADDRESS METHOD'
,
''
,
''
,
'# "local" is for Unix domain socket connections only (check unix_socket_permissions!)'
,
'# "local" is for Unix domain socket connections only (check unix_socket_permissions!)'
,
'local all all
iden
t'
,
'local all all
trus
t'
,
'host all all 127.0.0.1/32 md5'
,
'host all all 127.0.0.1/32 md5'
,
'host all all ::1/128 md5'
,
'host all all ::1/128 md5'
,
]
]
...
...
slapos/recipe/postgres/backup.py
View file @
97bba911
...
@@ -63,6 +63,7 @@ class ExportRecipe(GenericBaseRecipe):
...
@@ -63,6 +63,7 @@ class ExportRecipe(GenericBaseRecipe):
umask 077
umask 077
%(bin)s/pg_dump
\
\
%(bin)s/pg_dump
\
\
--host=%(pgdata-directory)s
\
\
--host=%(pgdata-directory)s
\
\
--username postgres
\
\
--format=custom
\
\
--format=custom
\
\
--file=%(backup-directory)s/database.dump
\
\
--file=%(backup-directory)s/database.dump
\
\
%(dbname)s
%(dbname)s
...
@@ -102,6 +103,7 @@ class ImportRecipe(GenericBaseRecipe):
...
@@ -102,6 +103,7 @@ class ImportRecipe(GenericBaseRecipe):
#!/bin/sh
#!/bin/sh
%(bin)s/pg_restore
\
\
%(bin)s/pg_restore
\
\
--host=%(pgdata-directory)s
\
\
--host=%(pgdata-directory)s
\
\
--username postgres
\
\
--dbname=%(dbname)s
\
\
--dbname=%(dbname)s
\
\
--clean
\
\
--clean
\
\
--no-owner
\
\
--no-owner
\
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment