diff --git a/liste-sympa-zourit.ods b/liste-sympa-zourit.ods new file mode 100644 index 0000000..e0f7f0b Binary files /dev/null and b/liste-sympa-zourit.ods differ diff --git a/sympa/TODO.md b/sympa/TODO.md index cf00feb..791bbeb 100644 --- a/sympa/TODO.md +++ b/sympa/TODO.md @@ -5,6 +5,7 @@ TODO * [x] listes.artcode.re * [x] tenir à jour [listes.txt](../listes.txt) * [x] listes.voyagesdegulliver.fr EFFACÉ + * [ ] listes.bonneveine2.com ??? à ajouter après DNS ok ? * [x] installer un Sympa sur une base Debian 12 récente * [x] souci avec nginx * [x] systemd cgi issue diff --git a/sympa/bin/apply_auth_remote_ssh.bash b/sympa/bin/apply_auth_remote_ssh.bash new file mode 100644 index 0000000..da65e87 --- /dev/null +++ b/sympa/bin/apply_auth_remote_ssh.bash @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# changes in /etc/sympa/auth.conf +sed -i 's/.*host 192.168.1.254:389.*/ host 127.0.0.1:389 # remote connection through SSH/' /etc/sympa/auth.conf + +# start SSH port translation if needed +if ! ss -tln | grep -q 127.0.0.1:389; then + ssh -fN listes.artcode.re -L 389:192.168.1.254:389 + echo 'SSH port translation 389 is now active!' + systemctl restart wwsympa.socket +else + echo 'SSH already enabled!' +fi diff --git a/sympa/bin/install_zourit_style.bash b/sympa/bin/install_zourit_style.bash new file mode 100644 index 0000000..fbf870e --- /dev/null +++ b/sympa/bin/install_zourit_style.bash @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# changes in /usr/share/sympa/lib/Sympa/Config/Schema.pm +sed -i "s/.*005ab2.*/ default => '#ad0c78', # '#005ab2' replaced by ZOURIT-COLOR-1/" /usr/share/sympa/lib/Sympa/Config/Schema.pm +sed -i "s/.*004b94.*/ default => '#1f2937', # '#004b94' replaced by ZOURIT-COLOR-2/" /usr/share/sympa/lib/Sympa/Config/Schema.pm +sed -i "s/.*0090e9.*/ default => '#b15593', # '#0090e9' replaced by ZOURIT-COLOR-3/" /usr/share/sympa/lib/Sympa/Config/Schema.pm +sed -i "s/.*66aaff.*/ default => '#949ba7', # '#66aaff' replaced by ZOURIT-COLOR-4/" /usr/share/sympa/lib/Sympa/Config/Schema.pm + +# changes in /usr/share/sympa/default/web_tt2/css.tt2 +if ! grep -q '.top-bar button:hover' /usr/share/sympa/default/web_tt2/css.tt2; then + sed -i "1661i\\.top-bar button:hover{\\n color: white;\\n}" /usr/share/sympa/default/web_tt2/css.tt2 + echo 'style changed successfully' +else + echo 'style already changed!' +fi + +# detect if exists inherited list styles +socket_restart=false +for i in /var/lib/sympa/css/*; do + if [[ "$i" != '/var/lib/sympa/css/style.css' ]] && [[ -d "$i" ]]; then + socket_restart=true + rm -rf "$i" + fi +done + +[[ $socket_restart == true ]] && systemctl restart wwsympa.socket && echo "wwsympa restarted with fresh styles" +true diff --git a/sympa/doc/custom_cemea.md b/sympa/doc/custom_cemea.md new file mode 100644 index 0000000..9db29d6 --- /dev/null +++ b/sympa/doc/custom_cemea.md @@ -0,0 +1,14 @@ +CUSTOM CEMEA's styling +====================== + +# sed /usr/share/sympa/lib/Sympa/Config/Schema.pm +default =>'#ad0c78', # '#005ab2' replaced by ZOURIT-COLOR-1 +default =>'#b15593', # '#004b94' replaced by ZOURIT-COLOR-2 +default =>'#1f2937', # '#0090e9', replaced by ZOURIT-COLOR-3 +default =>'#949ba7', # '#66aaff', replaced by ZOURIT-COLOR-4 +# systemctl restart wwsympa.socket + +/usr/share/sympa/default/web_tt2/css.tt2 #line 1661 +.top-bar button:hover{ + color: white; +} \ No newline at end of file diff --git a/sympa/doc/install.md b/sympa/doc/install.md index 1664390..18a3b65 100644 --- a/sympa/doc/install.md +++ b/sympa/doc/install.md @@ -7,7 +7,7 @@ https://wiki.evolix.org/HowtaptoSympa USE OF: postfix + postgresql + ... -## Apache2 + fcgi +## Apache2 + fcgi (deprecated, see nginx below) Rk: replace {{PUBLIC_URL}} and {{LISTMASTER}} according to your needs! ``` @@ -44,7 +44,7 @@ LISTMASTER=pvincent@artcode.re * systemctl restart apache2 sympa -## Nginx + fastcgi +## Nginx + fastcgi (recommended!) * apt install -y postfix postgresql nginx fcgiwrap perl-doc * domain: {{PUBLIC_URL}}