Skip to content

Commit b5a4d28

Browse files
apt-get install -y whiptail
1 parent f886330 commit b5a4d28

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

script/install.sh

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
clear
32
echo
43
echo
54
echo
@@ -86,6 +85,7 @@ apt-get install -y php-fpm php php-dev php-common php-cli php-gd php-pear php-c
8685
apt-get install -y mariadb-server php-mysql
8786
apt-get install -y unzip git libcurl4-openssl-dev htop sngrep firewalld fail2ban cron
8887
apt-get install -y rsyslog
88+
apt-get install -y whiptail
8989

9090
PHP_INI=$(php -i | grep /.+/php.ini -oE)
9191

@@ -114,7 +114,6 @@ echo
114114
sleep 1
115115
cd /usr/src
116116
rm -rf asterisk*
117-
clear
118117
mv /var/www/html/mbilling/script/asterisk-13.35.0.tar.gz /usr/src/
119118
tar xzvf asterisk-13.35.0.tar.gz
120119
rm -rf asterisk-13.35.0.tar.gz
@@ -142,9 +141,6 @@ make samples
142141
make config
143142
ldconfig
144143

145-
clear
146-
147-
148144

149145
chmod -R 777 /tmp
150146

@@ -200,13 +196,13 @@ sed -i 's/Group ${APACHE_RUN_GROUP}/Group asterisk/' ${HTTP_CONFIG}
200196
sed -i "s/memory_limit = 16M/memory_limit = 512M /" ${PHP_INI}
201197
sed -i "s/memory_limit = 128M/memory_limit = 512M /" ${PHP_INI}
202198
mkdir -p /var/www/html
203-
sed -i 's/<Directory \/var\/www\/>/<Directory \/var\/www\/html\/>/' ${HTTP_CONFIG}
199+
sed -i 's/<Directory \/var\/www\/>/<Directory \/var\/www\/html\/>/' "${HTTP_CONFIG}"
204200

205201

206202
echo
207203
echo "----------- Create mysql password: Your mysql root password is $password ----------"
208204
echo
209-
205+
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
210206
systemctl start mariadb
211207
systemctl enable apache2
212208
systemctl enable mariadb
@@ -256,7 +252,6 @@ open_files_limit=500000
256252

257253
startup_services
258254

259-
clear
260255
echo
261256
echo '----------- Installing the Web Interface ----------'
262257
echo
@@ -309,7 +304,7 @@ cp -rf /var/www/html/mbilling/resources/sounds/es /var/lib/asterisk/sounds
309304
cp -rf /var/www/html/mbilling/resources/sounds/en /var/lib/asterisk/sounds
310305

311306
installBr() {
312-
clear
307+
313308
language='br'
314309
cp -rf /var/www/html/mbilling/script/br /var/lib/asterisk/
315310
cd /var/lib/asterisk
@@ -318,12 +313,12 @@ installBr() {
318313
}
319314

320315
installEn() {
321-
clear
316+
322317
language='en'
323318
}
324319

325320
installEs() {
326-
clear
321+
327322
language='en'
328323
cp -n /var/www/html/mbilling/resources/sounds/en/* /var/lib/asterisk/sounds
329324
mkdir /var/lib/asterisk/es
@@ -903,7 +898,7 @@ processor_type()
903898

904899
cd /usr/src/asterisk-13.35.0
905900
make config
906-
clear
901+
907902
echo "INSTALLING G723 and G729 CODECS......... FROM http://asterisk.hosting.lv";
908903
cd /usr/src
909904
rm -rf codec_*

0 commit comments

Comments
 (0)