#!/bin/bash

clear
echo "Create a VERY SECURE admin password for Web Applications."
echo "These include apps like AsteriDex and Telephone Reminders."
echo -n "Enter new Apache admin password: "
read apachepw

echo "Apache admin password: $apachepw"
echo " "

if [[ -z $apachepw ]]; then
 echo "Apache admin password cannot be blank. Exiting..."
 exit
fi

htpasswd -cb /etc/pbx/wwwpasswd admin $apachepw

echo "Apache admin password has been updated: $apachepw"
