From 0c6aeb216ba5e589fd761f52029691afabe544eb Mon Sep 17 00:00:00 2001 From: chansizzle <14916599+chansizzle@users.noreply.github.com> Date: Sat, 5 Jul 2025 16:13:33 -0600 Subject: [PATCH] pgpassword security and conflict avoidance (#442) --- debian/resources/backup/fusionpbx-backup | 3 +++ debian/resources/backup/fusionpbx-maintenance | 3 +++ debian/resources/finish.sh | 3 +++ debian/resources/postgresql/dsn.sh | 3 +++ debian/resources/postgresql/empty.sh | 3 +++ 5 files changed, 15 insertions(+) diff --git a/debian/resources/backup/fusionpbx-backup b/debian/resources/backup/fusionpbx-backup index d02564b..b3aa12b 100755 --- a/debian/resources/backup/fusionpbx-backup +++ b/debian/resources/backup/fusionpbx-backup @@ -25,3 +25,6 @@ pg_dump --verbose -Fc --host=$db_host --port=$db_port -U fusionpbx fusionpbx --s #tar -zvcf /var/backups/fusionpbx/backup_$now.tgz /var/backups/fusionpbx/postgresql/fusionpbx_pgsql_$now.sql /var/www/fusionpbx /usr/local/freeswitch/scripts /usr/local/freeswitch/storage /usr/local/freeswitch/recordings /etc/fusionpbx /usr/local/freeswitch/conf /usr/local/freeswitch/sounds/music/ echo "Backup Completed" + +# pgpassword security and conflict avoidance +unset PGPASSWORD diff --git a/debian/resources/backup/fusionpbx-maintenance b/debian/resources/backup/fusionpbx-maintenance index 42fd635..a03098a 100755 --- a/debian/resources/backup/fusionpbx-maintenance +++ b/debian/resources/backup/fusionpbx-maintenance @@ -175,3 +175,6 @@ fi #completed message echo "Maintenance Completed"; + +# pgpassword security and conflict avoidance +unset PGPASSWORD diff --git a/debian/resources/finish.sh b/debian/resources/finish.sh index 2e6045e..d53a41d 100755 --- a/debian/resources/finish.sh +++ b/debian/resources/finish.sh @@ -157,3 +157,6 @@ echo " https://fusionpbx.com/support.php" echo " https://www.fusionpbx.com" echo " http://docs.fusionpbx.com" echo "" + +# pgpassword security and conflict avoidance +unset PGPASSWORD diff --git a/debian/resources/postgresql/dsn.sh b/debian/resources/postgresql/dsn.sh index 7728d1d..baa7275 100755 --- a/debian/resources/postgresql/dsn.sh +++ b/debian/resources/postgresql/dsn.sh @@ -68,3 +68,6 @@ done #restart freeswitch service freeswitch restart + +# pgpassword security and conflict avoidance +unset PGPASSWORD diff --git a/debian/resources/postgresql/empty.sh b/debian/resources/postgresql/empty.sh index e65914c..44b5634 100755 --- a/debian/resources/postgresql/empty.sh +++ b/debian/resources/postgresql/empty.sh @@ -25,3 +25,6 @@ pg_dump --verbose -Fc --host=$db_host --port=$db_port -U fusionpbx fusionpbx --s #empty the fusionpbx database sudo -u postgres psql -d fusionpbx -c "drop schema public cascade;"; sudo -u postgres psql -d fusionpbx -c "create schema public;"; + +# pgpassword security and conflict avoidance +unset PGPASSWORD