]> pd.if.org Git - newsd/blobdiff - Makefile
Improved robustness of server startup
[newsd] / Makefile
index 306b50b921260835beac1e030221e5c54da91d57..54a369c3741548371e9ae0d6f35edfbd96a0cd77 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,8 +20,8 @@ control.ctl:
 newsdb:
        -dropdb news
        createdb -O news -T template0 -E SQL_ASCII news
-       psql -d news -c 'alter database news set search_path to nntp,public'
-       psql -d news -c 'alter database news set client_min_messages to warning'
+       $(PSQL) -c 'alter database news set search_path to nntp,public'
+       $(PSQL) -c 'alter database news set client_min_messages to warning'
 
 preserve:
        sudo su -c 'psql -1 --set ON_ERROR_STOP=1 -U news -d news -f preserve.sql' news