#!/usr/bin/env bash # postfix debconf-set-selections </etc/nginx/sites-available/sympa.conf server { listen 80; server_name _; rewrite ^/$ /wws permanent; location /wws { include fastcgi_params; fastcgi_param SERVER_NAME $(hostname -f); fastcgi_pass unix:/run/sympa/wwsympa.socket; } location /static-sympa { alias /usr/share/sympa/static_content; } location /css-sympa { alias /var/lib/sympa/css; } location /pictures-sympa { alias /var/lib/sympa/pictures; } } EOF cd /etc/nginx/sites-enabled && rm -f default && ln -sf ../sites-available/sympa.conf && cd systemctl reload nginx # final word echo Sympa successfully installed!