Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
callcenter-magnus committed Oct 3, 2024
1 parent 05002b7 commit afa720b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions protected/commands/clear_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ rm -rf *202*
rm -rf asterisk/*202*
rm -rf httpd/*202*
rm -rf apache2/*202*
rm -rf apache2/access.log.*
rm -rf apache2/error.log.*
rm -rf asterisk/messages.*
rm -rf /var/www/html/mbilling/protected/runtime/*.log.*

Expand Down
4 changes: 4 additions & 0 deletions protected/commands/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ get_linux_distribution ()
HTTP_DIR="/etc/apache2/"
HTTP_CONFIG=${HTTP_DIR}"apache2.conf"
MYSQL_CONFIG="/etc/mysql/mariadb.conf.d/50-server.cnf"
SERVICE='apache2'
elif [ -f /etc/redhat-release ]; then
DIST="CENTOS"
HTTP_DIR="/etc/httpd/"
HTTP_CONFIG=${HTTP_DIR}"conf/httpd.conf"
MYSQL_CONFIG="/etc/my.cnf"
SERVICE='httpd'
else
DIST="OTHER"
echo 'Installation does not support your distribution'
Expand Down Expand Up @@ -84,6 +86,8 @@ Order Deny,Allow
Deny from all
' > /var/www/html/mbilling/assets/.htaccess
chmod +x /var/www/html/mbilling/resources/asterisk/mbilling.php
sed -i "s/AllowOverride None/AllowOverride All/" ${HTTP_CONFIG}
systemctl reload ${SERVICE}
/var/www/html/mbilling/protected/commands/clear_memory
if [[ -e /var/www/html/mbilling/resources/images/lock-screen-background.jpg ]]; then
for color in black blue gray orange purple red yellow green
Expand Down
1 change: 1 addition & 0 deletions script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ AddType application/octet-stream .csv
</IfModule>
<Directory "/var/www/html">
AllowOverride All
DirectoryIndex index.htm index.html index.php index.php3 default.html index.cgi
</Directory>
Expand Down

0 comments on commit afa720b

Please sign in to comment.