#!/bin/bash
system_password=d1FL6tdViD
admin_password=9oUBv3eGxO
/usr/bin/systemctl start firewalld.service
yum install -y
https://service.ictinnovations.com/repo/7/ict-release-7-4.el7.centos.noarch.rpm
yum install -y
http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm
yum install -y epel-release
yum -y install ictcore ictcore-fax ictcore-email
yum -y install ictfax
setenforce 0
mysql_auth="-uroot"
mysql $mysql_auth -e "CREATE DATABASE ictfax"
mysql $mysql_auth -e "GRANT ALL PRIVILEGES ON ictfax.* TO ictfaxuser@localhost IDENTIFIED BY '$system_password'"
mysql $mysql_auth -e "FLUSH PRIVILEGES"
mysql $mysql_auth ictfax -e "SOURCE /usr/ictcore/db/database.sql"
mysql $mysql_auth ictfax -e "SOURCE /usr/ictcore/db/fax.sql"
mysql $mysql_auth ictfax -e "SOURCE /usr/ictcore/db/email.sql"
mysql $mysql_auth ictfax -e "SOURCE /usr/ictcore/db/data/role_user.sql"
mysql $mysql_auth ictfax -e "SOURCE /usr/ictcore/db/data/role_admin.sql"
mysql $mysql_auth ictfax -e "SOURCE /usr/ictcore/db/data/demo_users.sql"
mysql $mysql_auth ictfax -e "UPDATE usr SET email='
[email protected]', passwd=MD5('$admin_password') WHERE username='admin'"
/usr/ictcore/bin/sendmail/emaildomain
php /usr/ictcore/bin/sendmail/email_to_fax
/bin/wget -q -O /usr/ictcore/etc/ictcore.conf '
http://ictfax.org/__auto/download.php?file=ictcore.conf&id=mPc7'
sed -i "s/_system_secret_placeholder_/$system_password/g" /usr/ictcore/etc/ictcore.conf
systemctl restart httpd.service
echo "####################################################"
echo "# ICTFAX INSTALLATION COMPLETED SUCCESSFULLY #"
echo "####################################################"
echo "Please visit 127.0.0.1"
echo "and using following information to access ICTFax web interface"
echo ""
echo "email:
[email protected]"
echo "password: $admin_password"
echo ""
echo "Enjoy !!!"
# yum -y install git make
# cd /usr/src
# wget "
http://www.yudit.org/download/yudit-2.9.2.tar.gz"
# tar xzf yudit-2.9.2.tar.gz
# cd yudit*
# ./configure --prefix=/usr/local
# make
# make install