Skip to content

Commit afa720b

Browse files
build
1 parent 05002b7 commit afa720b

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

build/MagnusBilling-current.tar.gz

350 Bytes
Binary file not shown.

protected/commands/clear_logs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ rm -rf *202*
66
rm -rf asterisk/*202*
77
rm -rf httpd/*202*
88
rm -rf apache2/*202*
9+
rm -rf apache2/access.log.*
10+
rm -rf apache2/error.log.*
911
rm -rf asterisk/messages.*
1012
rm -rf /var/www/html/mbilling/protected/runtime/*.log.*
1113

protected/commands/update.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ get_linux_distribution ()
3131
HTTP_DIR="/etc/apache2/"
3232
HTTP_CONFIG=${HTTP_DIR}"apache2.conf"
3333
MYSQL_CONFIG="/etc/mysql/mariadb.conf.d/50-server.cnf"
34+
SERVICE='apache2'
3435
elif [ -f /etc/redhat-release ]; then
3536
DIST="CENTOS"
3637
HTTP_DIR="/etc/httpd/"
3738
HTTP_CONFIG=${HTTP_DIR}"conf/httpd.conf"
3839
MYSQL_CONFIG="/etc/my.cnf"
40+
SERVICE='httpd'
3941
else
4042
DIST="OTHER"
4143
echo 'Installation does not support your distribution'
@@ -84,6 +86,8 @@ Order Deny,Allow
8486
Deny from all
8587
' > /var/www/html/mbilling/assets/.htaccess
8688
chmod +x /var/www/html/mbilling/resources/asterisk/mbilling.php
89+
sed -i "s/AllowOverride None/AllowOverride All/" ${HTTP_CONFIG}
90+
systemctl reload ${SERVICE}
8791
/var/www/html/mbilling/protected/commands/clear_memory
8892
if [[ -e /var/www/html/mbilling/resources/images/lock-screen-background.jpg ]]; then
8993
for color in black blue gray orange purple red yellow green

script/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ AddType application/octet-stream .csv
323323
</IfModule>
324324
325325
<Directory "/var/www/html">
326+
AllowOverride All
326327
DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi
327328
</Directory>
328329

0 commit comments

Comments
 (0)