48 |
|
|
49 |
if [ -e /usr/share/freepbx/sources/freepbx/installlib/SQL/asterisk.sql ]; then |
if [ -e /usr/share/freepbx/sources/freepbx/installlib/SQL/asterisk.sql ]; then |
50 |
mysql $dbname < /usr/share/freepbx/sources/freepbx/installlib/SQL/asterisk.sql |
mysql $dbname < /usr/share/freepbx/sources/freepbx/installlib/SQL/asterisk.sql |
51 |
+ mysql $DBNAME -e "UPDATE freepbx_settings SET value=0 where keyword='CHECKREFERER';" |
+ mysql $dbname -e "UPDATE freepbx_settings SET value=0 where keyword='CHECKREFERER';" |
52 |
+ mysql $DBNAME -e "UPDATE freepbx_settings SET value='webserver' where keyword='AUTHTYPE';" |
+ mysql $dbname -e "UPDATE freepbx_settings SET value='webserver' where keyword='AUTHTYPE';" |
53 |
else |
else |
54 |
echo "Error: file /usr/share/freepbx/sources/freepbx/installlib/SQL/asterisk.sql doesn't exists" |
echo "Error: file /usr/share/freepbx/sources/freepbx/installlib/SQL/asterisk.sql doesn't exists" |
55 |
exit 1 |
exit 1 |