From 6a02dda4e5852b5802888dec4548e66aa0a465dd Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 23 Dec 2022 16:42:22 -0700 Subject: [PATCH] Update dsn.sh --- debian/resources/switch/dsn.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/debian/resources/switch/dsn.sh b/debian/resources/switch/dsn.sh index 9113155..0d931fe 100755 --- a/debian/resources/switch/dsn.sh +++ b/debian/resources/switch/dsn.sh @@ -10,9 +10,9 @@ cd "$(dirname "$0")" now=$(date +%Y-%m-%d) #get the database password -#if [ .$database_password = .'random' ]; then -# read -p "Enter the database password: " database_password -#fi +if [ .$database_password = .'random' ]; then + read -p "Enter the database password: " database_password +fi #set PGPASSWORD #export PGPASSWORD=$database_password @@ -30,15 +30,15 @@ sed -i /etc/freeswitch/autoload_configs/switch.conf.xml -e s:'" >> /etc/freeswitch/vars.xml