We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ed27c commit f1ff45fCopy full SHA for f1ff45f
nextcloud_update.sh
@@ -910,6 +910,7 @@ then
910
if ! sudo -u postgres psql -c "\q"
911
then
912
# If it fails, trust the 'postgres' user to be able to perform backup
913
+ rsync -a /etc/postgresql/*/main/pg_hba.conf "$BACKUP"/pg_hba.conf_BACKUP
914
sed -i "s|local all postgres .*|local all postgres trust|g" /etc/postgresql/*/main/pg_hba.conf
915
systemctl restart postgresql.service
916
if sudo -u postgres psql -c "SELECT 1 AS result FROM pg_database WHERE datname='$NCDB'" | grep "1 row" > /dev/null
0 commit comments