diff host/addStartupScriptsPostgres.sh @ 1633:665049cffc02

fix path
author fffilimonov
date Tue, 14 Dec 2021 07:55:47 -0600
parents 0344a535b1db
children
line wrap: on
line diff
--- a/host/addStartupScriptsPostgres.sh	Tue Dec 14 07:41:01 2021 +0000
+++ b/host/addStartupScriptsPostgres.sh	Tue Dec 14 07:55:47 2021 -0600
@@ -1,9 +1,8 @@
 #!/bin/bash
 
 SLAVE_IP=$1;
-
-mkdir -p $localStartup/postgres 2>/dev/null;
 . startupScripts.sh;
+mkdir -p $localStartup"/postgres" 2>/dev/null;
 
 cd $startupPostgres;
 for file in *.plist; do
@@ -16,11 +15,11 @@
 
 cd ../;
 
-cp postgres/postgresql.conf ${localStartup}/postgres/postgresql.conf;
+cp postgresql.conf ${localStartup}/postgres/postgresql.conf;
 mv /usr/local/var/postgresql@9.5/postgresql.conf /usr/local/var/postgresql@9.5/postgresql.conf.bak;
 ln -sf ${localStartup}/postgres/postgresql.conf /usr/local/var/postgresql@9.5/postgresql.conf;
 
-sed "s/SLAVE_IP/${SLAVE_IP}/g" postgres/pg_hba.conf > ${localStartup}/postgres/pg_hba.conf;
+sed "s/SLAVE_IP/${SLAVE_IP}/g" pg_hba.conf > ${localStartup}/postgres/pg_hba.conf;
 mv /usr/local/var/postgresql@9.5/pg_hba.conf /usr/local/var/postgresql@9.5/pg_hba.conf.bak;
 ln -sf ${localStartup}/postgres/pg_hba.conf /usr/local/var/postgresql@9.5/pg_hba.conf;