projects
/
matthijs
/
upstream
/
backupninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4dc5c34
)
pgsql: clarify error message when backupdir does not exist
author
intrigeri
<intrigeri@boum.org>
Tue, 24 Jun 2008 15:01:35 +0000
(15:01 +0000)
committer
intrigeri
<intrigeri@boum.org>
Tue, 24 Jun 2008 15:01:35 +0000
(15:01 +0000)
handlers/pgsql.in
patch
|
blob
|
history
diff --git
a/handlers/pgsql.in
b/handlers/pgsql.in
index 23e2c2b42f0553864846b1fba38c91d5d4469e1f..1b4a45215aad73a559cc2b2c02cc11c103c91bf7 100644
(file)
--- a/
handlers/pgsql.in
+++ b/
handlers/pgsql.in
@@
-57,7
+57,7
@@
fi
# create backup dir, the vroot variable will be empty if no vsname was specified
# and will proceed to operate on the host
[ -d $vroot$backupdir ] || (debug "mkdir -p $vroot$backupdir"; mkdir -p $vroot$backupdir)
# create backup dir, the vroot variable will be empty if no vsname was specified
# and will proceed to operate on the host
[ -d $vroot$backupdir ] || (debug "mkdir -p $vroot$backupdir"; mkdir -p $vroot$backupdir)
-[ -d $vroot$backupdir ] || fatal "Backup directory '$vroot$backupdir'"
+[ -d $vroot$backupdir ] || fatal "Backup directory '$vroot$backupdir'
does not exist, and could not be created.
"
# give backup dir the good uid and permissions
# (in respect to the vserver, if $usevserver = yes)
# give backup dir the good uid and permissions
# (in respect to the vserver, if $usevserver = yes)