aboutsummaryrefslogtreecommitdiff
path: root/handlers/pgsql
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/pgsql')
-rw-r--r--handlers/pgsql2
1 files changed, 1 insertions, 1 deletions
diff --git a/handlers/pgsql b/handlers/pgsql
index c17caf8..dd1a2ea 100644
--- a/handlers/pgsql
+++ b/handlers/pgsql
@@ -30,7 +30,7 @@ if [ $usevserver ]; then
[ -d $vroot ] || fatal "vserver '$vsname' does not exist at '$vroot'"
# is it running ?
running=`$VSERVERINFO $vsname RUNNING`
- if [ $running = 1 ]; then
+ if [ "$running" = "1" ]; then
if [ "$databases" == "all" ]; then
[ -x "$vroot`$VSERVER $vsname exec which $PGSQLDUMPALL`" ] || \
fatal "Can't find $PGSQLDUMPALL in vserver $vsname."