replace scram-sha-256 with md5
This commit is contained in:
parent
4e35bbc472
commit
69bda4704d
|
|
@ -90,6 +90,8 @@ if [ ."$database_host" = ."127.0.0.1" ] || [ ."$database_host" = ."::1" ] ; then
|
||||||
systemctl restart postgresql
|
systemctl restart postgresql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sed -i /etc/postgresql/15/main/pg_hba.conf -e '/^#/!s/scram-sha-256/md5/g'
|
||||||
|
|
||||||
#init.d
|
#init.d
|
||||||
#/usr/sbin/service postgresql restart
|
#/usr/sbin/service postgresql restart
|
||||||
|
|
||||||
|
|
@ -101,6 +103,9 @@ fi
|
||||||
#sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup
|
#sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-backup
|
||||||
#sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-maintenance
|
#sed -i "s/zzz/$password/g" /etc/cron.daily/fusionpbx-maintenance
|
||||||
|
|
||||||
|
#replace scram-sha-256 with md5
|
||||||
|
sed -i /etc/postgresql/$database_version/main/pg_hba.conf -e '/^#/!s/scram-sha-256/md5/g'
|
||||||
|
|
||||||
#move to /tmp to prevent a red herring error when running sudo with psql
|
#move to /tmp to prevent a red herring error when running sudo with psql
|
||||||
cwd=$(pwd)
|
cwd=$(pwd)
|
||||||
cd /tmp
|
cd /tmp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue