Mercurial Hosting > luan
diff host/addStartupScripts.sh @ 1632:0344a535b1db
add doc
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:41:01 +0000 |
parents | 35c626c06dd5 |
children |
line wrap: on
line diff
--- a/host/addStartupScripts.sh Mon Dec 13 09:14:52 2021 +0000 +++ b/host/addStartupScripts.sh Tue Dec 14 07:41:01 2021 +0000 @@ -3,9 +3,6 @@ . startupScripts.sh; mkdir -p $localStartup 2>/dev/null; -mkdir -p $localStartup/postgres 2>/dev/null; - -cleanUp; cd $startup; for file in *.plist; do @@ -16,19 +13,6 @@ s~ROOT~${ROOTPWD}~g" $file > ${localStartup}/${file}; done; -cp postgres/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; -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; - -cd $localStartup; -for file in *.plist; do - sudo ln -sf ${localStartup}/${file} ${systemStarup}/${file}; - sudo chown root:wheel ${localStartup}/${file}; -done; - +addStartup; cd $ROOTPWD;