forked from norman/fusionpbx-install.sh-github-mirror
pgpassword security and conflict avoidance (#442)
This commit is contained in:
3
debian/resources/backup/fusionpbx-backup
vendored
3
debian/resources/backup/fusionpbx-backup
vendored
@@ -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
|
||||
|
||||
@@ -175,3 +175,6 @@ fi
|
||||
|
||||
#completed message
|
||||
echo "Maintenance Completed";
|
||||
|
||||
# pgpassword security and conflict avoidance
|
||||
unset PGPASSWORD
|
||||
|
||||
3
debian/resources/finish.sh
vendored
3
debian/resources/finish.sh
vendored
@@ -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
|
||||
|
||||
3
debian/resources/postgresql/dsn.sh
vendored
3
debian/resources/postgresql/dsn.sh
vendored
@@ -68,3 +68,6 @@ done
|
||||
|
||||
#restart freeswitch
|
||||
service freeswitch restart
|
||||
|
||||
# pgpassword security and conflict avoidance
|
||||
unset PGPASSWORD
|
||||
|
||||
3
debian/resources/postgresql/empty.sh
vendored
3
debian/resources/postgresql/empty.sh
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user