Increase voip password length

This commit is contained in:
Bob Mottram 2015-01-25 15:33:30 +00:00
parent 5b854bd09a
commit c119ce2754
1 changed files with 3 additions and 2 deletions

View File

@ -8395,10 +8395,10 @@ function install_voip {
get_voip_server_password
if [ ! $VOIP_SERVER_PASSWORD ]; then
VOIP_SERVER_PASSWORD=$(openssl rand -base64 $MINIMUM_PASSWORD_LENGTH)
VOIP_SERVER_PASSWORD=$(openssl rand -base64 16)
fi
if [ ${#VOIP_SERVER_PASSWORD} -lt $MINIMUM_PASSWORD_LENGTH ]; then
VOIP_SERVER_PASSWORD=$(openssl rand -base64 $MINIMUM_PASSWORD_LENGTH)
VOIP_SERVER_PASSWORD=$(openssl rand -base64 16)
fi
# Make an ssl cert for the server
@ -8448,6 +8448,7 @@ function install_voip {
echo '' >> /home/$MY_USERNAME/README
echo 'VoIP Server' >> /home/$MY_USERNAME/README
echo '===========' >> /home/$MY_USERNAME/README
echo 'VoIP server username: SuperUser' >> /home/$MY_USERNAME/README
echo 'VoIP server password: $VOIP_SERVER_PASSWORD' >> /home/$MY_USERNAME/README
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
fi