mailcow / mailcow-ansiblerole

The official ansible role to setup mailcow using Ansible
GNU General Public License v3.0
76 stars 51 forks source link

Ensuring that any files created by the generate_config script will have the correct permissions #53

Open unleftie opened 1 week ago

unleftie commented 1 week ago

Debian 12, Docker 27.2.0, Ansible 2.17.2

Fatal error: Uncaught Error: Failed opening required '/web/inc/app_info.inc.php' (include_path='.:/usr/local/lib/php') in /web/inc/prerequisites.inc.php:24 Stack trace: #0 /web/index.php(2): require_once() #1 {main} thrown in /web/inc/prerequisites.inc.php on line 24

When running a role on an instance with umask 027 set at the system level, I received this error when opening https://$MAILCOW_HOSTNAME. As I understand it, PHP couldn't read the file it needed. The documentation states that we need to set the required umask 0022 parameter manually only at the stage of cloning the repo, but maybe it would be more correct to set this parameter also for generate_config script?