Added fix to mysql handler for option change to --extra-files, also
[matthijs/upstream/backupninja.git] / handlers / pgsql
index 435bccab92bb0af12616c232b05bc864e9c34250..1b916247bc091233757cfcab98b4cc70adc1710c 100644 (file)
@@ -62,7 +62,7 @@ fi
 # give backup dir the good uid and permissions
 # (in respect to the vserver, if $usevserver = yes)
 if [ $usevserver = yes ]; then
-   pguid=`$VSERVER $vsname exec getent passwd postgres | awk -F: '{print $3}'`
+   pguid=`$VSERVER $vsname exec getent passwd $PGSQLUSER | awk -F: '{print $3}'`
 else
    pguid=`getent passwd postgres | awk -F: '{print $3}'`
 fi