KazV2/dockers/sympa/reload.sh

14 lines
444 B
Bash
Raw Normal View History

2024-06-03 18:43:35 +02:00
#!/bin/bash
# mis à jour du filtre (si pas de ./build)
cd $(dirname $0)/..
for i in eMailShrinker filter.sh filterTest.sh; do
docker cp "postfix/filter/$i" sympaServ:/home/filter/
done
#Correction des droits sur le filter.sh
docker exec sympaServ chmod a+rx /home/filter/filter.sh /home/filter/filterTest.sh
2024-12-13 17:21:25 +01:00
# limitation du filter.sh
docker exec -it sympaServ bash -c "cp /home/filter/config/filter-20241109.sh /home/filter/filter.sh"