projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added remote destination directory checking and auto creation if doesn't exist.
[matthijs/upstream/backupninja.git]
/
handlers
/
pgsql
diff --git
a/handlers/pgsql
b/handlers/pgsql
index 9b1d8b7f4de134fae545e2490c3a98b53ed54022..c17caf8a1fc41585e1763542cd7e38a67068c65b 100644
(file)
--- a/
handlers/pgsql
+++ b/
handlers/pgsql
@@
-1,4
+1,3
@@
-#! /bin/sh
#
# PostgreSQL handler script for backupninja
#
#
# PostgreSQL handler script for backupninja
#
@@
-59,7
+58,7
@@
fi
# give backup dir the good uid and permissions
# (in respect to the vserver, if $usevserver)
# give backup dir the good uid and permissions
# (in respect to the vserver, if $usevserver)
-pguid=`g
rep '^postgres:' $vroot/etc/passwd
| awk -F: '{print $3}'`
+pguid=`g
etent passwd postgres
| awk -F: '{print $3}'`
[ -n "$pguid" ] || \
fatal "No user called postgres`[ $usevserver != 1 ] || echo \" on vserver $vsname\"`."
debug "chown $pguid $vroot$backupdir"
[ -n "$pguid" ] || \
fatal "No user called postgres`[ $usevserver != 1 ] || echo \" on vserver $vsname\"`."
debug "chown $pguid $vroot$backupdir"