X-Git-Url: https://pd.if.org/git/?p=newsd;a=blobdiff_plain;f=Makefile;h=54a369c3741548371e9ae0d6f35edfbd96a0cd77;hp=306b50b921260835beac1e030221e5c54da91d57;hb=c4c6aa228d8767a33820613568f1ebe9e0172297;hpb=e080e9960f4f40d4430cd0b5d13acd829709ab03 diff --git a/Makefile b/Makefile index 306b50b..54a369c 100644 --- 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