#!/bin/bash

echo "We recommend downloading and installing GUI modules from GitHub."
echo "gpl utilities are provided in /root to make this a simple process."
echo "Currently, GUI module repo is set to the FreePBX repositories."
echo "New module repositories may be available in not too distant future."
echo "Commercial resellers cannot distribute using the FreePBX module repos"
echo "located at http://mirror1.freepbx.org,http://mirror2.freepbx.org."
echo "The command to reset your repository to a new repo looks like this:"
echo "mysql -u root -ppassw0rd asterisk -e \"UPDATE freepbx_settings SET value = 'http://repo1.com' where keyword = 'MODULE_REPO';\""
echo "The command to reset your repository to two repos looks like this:"
echo "mysql -u root -ppassw0rd asterisk -e \"UPDATE freepbx_settings SET value = 'http://repo1.com,http://repo2.com' where keyword = 'MODULE_REPO';\""
echo "Running this script verifies your current GUI module repo configuration:"
mysql -u root -ppassw0rd asterisk -e "select keyword,value,name from freepbx_settings where keyword='MODULE_REPO';"
echo " "

