Browse Source

recommended vs deprecated

main
pvincent 5 days ago
parent
commit
90444e976d
  1. BIN
      liste-sympa-zourit.ods
  2. 1
      sympa/TODO.md
  3. 13
      sympa/bin/apply_auth_remote_ssh.bash
  4. 27
      sympa/bin/install_zourit_style.bash
  5. 14
      sympa/doc/custom_cemea.md
  6. 4
      sympa/doc/install.md

BIN
liste-sympa-zourit.ods

1
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

13
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

27
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

14
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;
}

4
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}}

Loading…
Cancel
Save