#! /bin/bash # Rocky9 compatible . /usr/src/m2/framework/bash_functions.sh . /usr/src/m2/framework/settings.sh k_config_details if [ "$GUI_PRESENT" == "0" ]; then exit 0; fi check_and_fix_permission "/home/$SYSTEM_GUI_DIR"/tmp 0777 report check_and_fix_permission "/home/$SYSTEM_GUI_DIR"/log/development.log 0666 report check_and_fix_permission "/home/$SYSTEM_GUI_DIR"/log/production.log 0666 report check_and_fix_permission /var/log/httpd/access_log 0777 report check_and_fix_permission /var/log/httpd/error_log 0777 report check_and_fix_permission /root/phpMyAdminPassword 0700 report touch /tmp/es_curl_resp chmod 666 /tmp/es_curl_resp # invoice templates folder for xlsx generation mkdir -p "/home/$SYSTEM_GUI_DIR"/public/invoice_templates check_and_fix_permission "/home/$SYSTEM_GUI_DIR"/public/invoice_templates 1777 report # white label mkdir -p "/home/$SYSTEM_GUI_DIR"/public/white_label chown apache:root "/home/$SYSTEM_GUI_DIR"/public/white_label check_and_fix_permission "/home/$SYSTEM_GUI_DIR"/public/white_label 0755 report # Call Tracing mkdir -p /tmp/m2/m2_call_tracing check_and_fix_permission /tmp/m2/m2_call_tracing 0777 report if [[ $ROCKY9 == 1 ]]; then setfacl -m 'd:u:apache:rwx' /tmp/ setfacl -m 'd:u:apache:rwx' /tmp/m2/ setfacl -m 'd:u:apache:rwx' /tmp/m2/invoices setfacl -m 'd:u:apache:rwx' /tmp/m2/number_pool_numbers_usage_reports fi