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