fix psql command line options for older pg
authorivan <ivan>
Thu, 8 Apr 2004 12:37:17 +0000 (12:37 +0000)
committerivan <ivan>
Thu, 8 Apr 2004 12:37:17 +0000 (12:37 +0000)
Makefile

index f631bf1..b99206c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -213,7 +213,7 @@ configure-rt:
 create-rt: configure-rt
        cd rt; make install
        echo -e "${DB_PASSWORD}\n\\d sessions"\
 create-rt: configure-rt
        cd rt; make install
        echo -e "${DB_PASSWORD}\n\\d sessions"\
-        | psql -UW ${DB_USER} freeside 2>&1\
+        | psql -U ${DB_USER} -W freeside 2>&1\
         | grep '^Did not find'\
         && rt/sbin/rt-setup-database --dba '${DB_USER}' \
                                     --dba-password '${DB_PASSWORD}' \
         | grep '^Did not find'\
         && rt/sbin/rt-setup-database --dba '${DB_USER}' \
                                     --dba-password '${DB_PASSWORD}' \