dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 644761edf877020b17ec17ea446bf59b38178c76
parent 27991856c6740afdc46b0acd09ea64994458a5d0
Author: rsiddharth <s@ricketyspace.net>
Date:   Wed,  2 Jan 2019 22:02:31 -0500

Makefile: Add psql.

Diffstat:
Makefile | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -33,6 +33,15 @@ nginx: mkdir -p ${HTML_DIR}/vm .PHONY: nginx +# Initialize postgresql +psql: + su - _postgresql -c 'mkdir -p /var/postgresql/data' + su - _postgresql -c 'initdb -D /var/postgresql/data \ + -U postgres -A scram-sha-256 \ + -E UTF8 --locale=en_US.UTF-8 \ + -W' +.PHONY: psql + # Provision exports exports: rsync -a etc/exports /etc/exports