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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
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
Hide 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:
...
@@ -151,8 +151,11 @@ template = inline:
#!/bin/bash
#!/bin/bash
. {{environment}}
. {{environment}}
# shut down postgres
# shut down postgres
backup_dir={{backup_dir}}
if [ ! -d "$1" ]; then
[ -n "$1" ] && backup_dir="$1"
echo "Usage: postgres-restore [directory]"
exit 10
fi
backup_dir="$1"
$${directories:bin}/postgres-stop
$${directories:bin}/postgres-stop
# check that postgres is down or refuse to run
# check that postgres is down or refuse to run
$${directories:bin}/postgres-status | grep STOPPED || exit 10
$${directories:bin}/postgres-status | grep STOPPED || exit 10
...
...
software/abilian/extranet_spr/software.cfg
View file @
0743d5eb
...
@@ -266,7 +266,7 @@ mode = 0644
...
@@ -266,7 +266,7 @@ mode = 0644
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-postgres.cfg.in
url = ${:_profile_base_location_}/instance-postgres.cfg.in
output = ${buildout:directory}/instance-postgres.cfg
output = ${buildout:directory}/instance-postgres.cfg
md5sum =
e2bcc3dafdfc5bf331b743952ed98be2
md5sum =
a138dad1b1da2e3f1e6012f4baf69a9d
mode = 0644
mode = 0644
[instance-redis]
[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