KazV2/dockers/sympa/reload.sh
2024-12-13 17:21:25 +01:00

14 lines
444 B
Bash
Executable File

#!/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
# limitation du filter.sh
docker exec -it sympaServ bash -c "cp /home/filter/config/filter-20241109.sh /home/filter/filter.sh"