FYI Avantfax re-installed?

kmcdaniel

Member
Joined
Jan 23, 2008
Messages
445
Reaction score
19
Can Avantfax can be uninstalled and re-installed? I see the warning about never running script twice on same machine.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,211
Reaction score
5,239
Too many pieces to undo before a reinstall would ever work. Sorry.
 

kmcdaniel

Member
Joined
Jan 23, 2008
Messages
445
Reaction score
19
Thanks Ward! Understood. How about a way or script that will add a username and password? I can't login on one of my boxes and when I use forgot password function and submit the email on record. Nothing gets sent. So I'm hoping there is a way to add anew additional user without being able to access gui.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,211
Reaction score
5,239
Create this script and run it:
Code:
#!/bin/bash
clear
echo "This script changes your AvantFAX admin password"
echo " "

echo -n "Enter new admin password (MAKE IT SECURE!!): "
read adminpw
echo " "
echo "admin password will be changed to: $adminpw"
read -p "Press ENTER key to continue or Ctrl-C to abort..."

mysql -u root -ppassw0rd -e "update avantfax.UserAccount set password = '`echo -n "$adminpw" | md5sum | awk '{ print $1 }'`' where username = 'admin' limit 1;"
mysql -u root -ppassw0rd -e "insert into avantfax.UserPasswords set uid = 1, pwdhash = '`echo -n "$adminpw" | md5sum | awk '{ print $1 }'`';"
echo " "
echo "Done. Use browser to access AvantFAX via link in FreePBX at http://`ifconfig | awk -F "[: ]+" '/inet addr:/ { if ($4 != "127.0.0.1") print $4 }'`"
echo " "
 

Members online

No members online now.

Forum statistics

Threads
25,842
Messages
167,959
Members
19,263
Latest member
baata
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top