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
Thomas Leymonerie
slapos
Commits
0743d5eb
Commit
0743d5eb
authored
Jul 18, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abialian: postgres-restore does not fallback to var/backup
but requires an explicit path.
parent
f4479fc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
software/abilian/extranet_spr/instance-postgres.cfg.in
software/abilian/extranet_spr/instance-postgres.cfg.in
+5
-2
software/abilian/extranet_spr/software.cfg
software/abilian/extranet_spr/software.cfg
+1
-1
No files found.
software/abilian/extranet_spr/instance-postgres.cfg.in
View file @
0743d5eb
...
...
@@ -151,8 +151,11 @@ template = inline:
#!/bin/bash
. {{environment}}
# shut down postgres
backup_dir={{backup_dir}}
[ -n "$1" ] && backup_dir="$1"
if [ ! -d "$1" ]; then
echo "Usage: postgres-restore [directory]"
exit 10
fi
backup_dir="$1"
$${directories:bin}/postgres-stop
# check that postgres is down or refuse to run
$${directories:bin}/postgres-status | grep STOPPED || exit 10
...
...
software/abilian/extranet_spr/software.cfg
View file @
0743d5eb
...
...
@@ -266,7 +266,7 @@ mode = 0644
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-postgres.cfg.in
output = ${buildout:directory}/instance-postgres.cfg
md5sum =
e2bcc3dafdfc5bf331b743952ed98be2
md5sum =
a138dad1b1da2e3f1e6012f4baf69a9d
mode = 0644
[instance-redis]
...
...
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