Closed Orest-Worhacz closed 3 months ago
Mentioning OP of MR @castorsky
Hello @Orest-Worhacz, script is being run not with executing ./setup-mta
but with "sourcing" (see the .docker/entrypoint.sh file):
. setup-mta
Sourcing does not need file to have execution permissions.
I see, right. My bad then. I think this might be closed. And maybe I will figure out how to use your code to send e-mails.
Latest Greenbone Community Containers from today. I've tried to setup mail notifications. And as I did dig deeper I found out a problem in the gvmd container.
Related merge request: https://github.com/greenbone/gvmd/pull/2046
Expected behavior
After setting up MTA_HOST env var setup-mta.sh script should run.
Actual behavior
Script newer runs because its missing execute permissions in the container:
Steps to reproduce
Start fresh container using docker-compose.yml provided in the docs. Add ENV vars from here: https://greenbone.github.io/docs/latest/22.4/container/workflows.html#setting-up-a-mail-transport-agent-inside-docker-container
Try to set up and test mail notification.
GVM versions
gsa: (gsad --version)
gvm: (gvmd --version)
openvas-scanner: (openvas --version)
gvm-libs:
Environment
Not relevant Operating system: Debian Bookworm (Stable) Installation method / source: (packages, source installation) Docker-compose.yml from docs
Logfiles
I tried to do simple chmod + on a script and execute as shown in STEPS TO REPRODUCE. So its simple fix but after each container restart has to be done manually.
P.S. my email notifications still won't work. But I guess its some separate problem.