From dedaa9b2eea9493f418b1cc2883fae1620fd5cfc Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 3 Apr 2002 00:26:25 +0000 Subject: [PATCH] Added "-U postgres" according to patch by ATS --- smsd/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/smsd/Makefile b/smsd/Makefile index 2c3e041..78e5206 100644 --- a/smsd/Makefile +++ b/smsd/Makefile @@ -28,16 +28,17 @@ OBJS = db.o \ all: smsd DB_DBNAME=sms +DB_USERNAME=-U postgres .PHONY: db db_dump db: sms.tables.sql - -dropdb $(DB_DBNAME) - createdb $(DB_DBNAME) - psql -f sms.tables.sql $(DB_DBNAME) + -dropdb $(DB_USERNAME) $(DB_DBNAME) + createdb $(DB_USERNAME) $(DB_DBNAME) + psql $(DB_USERNAME) -f sms.tables.sql $(DB_DBNAME) db_dump: - psql -c 'SELECT * FROM outbox' $(DB_DBNAME) + psql $(DB_USERNAME) -c 'SELECT * FROM outbox' $(DB_DBNAME) db_inbox: - psql -c 'SELECT * FROM inbox' $(DB_DBNAME) + psql $(DB_USERNAME) -c 'SELECT * FROM inbox' $(DB_DBNAME) smsd: $(OBJS) $(TOPDIR)/common/gsm-filetypes.o $(TOPDIR)/common/libgnokii.a #$(TOPDIR)/common/data/DATA.o -- 1.8.3.1