fix: use pushd over cd

This commit is contained in:
Jose Diaz-Gonzalez
2019-03-19 17:27:17 -04:00
parent 118e43a792
commit 0d0ff5f5ee

View File

@@ -1,6 +1,7 @@
#!/bin/bash
cd /var/lib/postgresql/data
pushd /var/lib/postgresql/data > /dev/null
openssl req -new -newkey rsa:4096 -x509 -nodes -out server.crt -keyout server.key -batch
chmod 600 server.key
sed -i "s/^#ssl = off/ssl = on/" postgresql.conf
sed -i "s/^#ssl_ciphers =.*/ssl_ciphers = 'AES256+EECDH:AES256+EDH'/" postgresql.conf
popd > /dev/null