Increase voip password length
This commit is contained in:
parent
5b854bd09a
commit
c119ce2754
|
@ -8395,10 +8395,10 @@ function install_voip {
|
||||||
|
|
||||||
get_voip_server_password
|
get_voip_server_password
|
||||||
if [ ! $VOIP_SERVER_PASSWORD ]; then
|
if [ ! $VOIP_SERVER_PASSWORD ]; then
|
||||||
VOIP_SERVER_PASSWORD=$(openssl rand -base64 $MINIMUM_PASSWORD_LENGTH)
|
VOIP_SERVER_PASSWORD=$(openssl rand -base64 16)
|
||||||
fi
|
fi
|
||||||
if [ ${#VOIP_SERVER_PASSWORD} -lt $MINIMUM_PASSWORD_LENGTH ]; then
|
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
|
fi
|
||||||
|
|
||||||
# Make an ssl cert for the server
|
# Make an ssl cert for the server
|
||||||
|
@ -8448,6 +8448,7 @@ function install_voip {
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
echo 'VoIP Server' >> /home/$MY_USERNAME/README
|
echo 'VoIP Server' >> /home/$MY_USERNAME/README
|
||||||
echo '===========' >> /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
|
echo 'VoIP server password: $VOIP_SERVER_PASSWORD' >> /home/$MY_USERNAME/README
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue