From 9bc02b98ee999f4784a984b2f1b46a0dbdf8d222 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 8 Jun 2012 12:51:03 +0200 Subject: [PATCH] Copie de la crl sur l ibay Primary --- ipasserelle-base.spec | 6 +++++- root/etc/cron.hourly/cacrl | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 root/etc/cron.hourly/cacrl diff --git a/ipasserelle-base.spec b/ipasserelle-base.spec index e426ab3..dc2cd08 100644 --- a/ipasserelle-base.spec +++ b/ipasserelle-base.spec @@ -1,4 +1,4 @@ -%define version 0.2.9 +%define version 0.2.10 %define release 1.beta4 %define name ipasserelle-base @@ -46,6 +46,9 @@ Based on SMEServer, iPasserelle is a specially configured SME Server, with some additionnal modules %changelog +* Fri Jun 7 2012 Daniel Berteaud 0.2.10-1.sme +- Copy cacrl in Primary ibay + * Tue May 29 2012 Daniel Berteaud 0.2.9-1.sme - Update private cacert @@ -189,6 +192,7 @@ perl createlinks --file /etc/cron.hourly/qpsmtpd-cleanup 'attr(0755,root,root)' \ --file /etc/cron.monthly/maillog-rotate 'attr(0755,root,root)' \ --file /etc/cron.hourly/qmail-notify 'attr(0755,root,root)' \ + --file /etc/cron.hourly/cacrl 'attr(0755,root,root)' \ --dir /home/e-smith/files/scan 'attr(0750,root,shared)' \ --dir /var/lib/qpsmtpd/greylisting 'attr(0750,qpsmtpd,qpsmtpd)' \ > %{name}-%{version}-filelist diff --git a/root/etc/cron.hourly/cacrl b/root/etc/cron.hourly/cacrl new file mode 100644 index 0000000..dbc808f --- /dev/null +++ b/root/etc/cron.hourly/cacrl @@ -0,0 +1,10 @@ +#!/bin/bash + +# Copy PHPki CAcrl in a public location + +if [ -e /opt/phpki/phpki-store/CA/crl/cacrl.pem ]; then + cp -f /opt/phpki/phpki-store/CA/crl/cacrl.pem /home/e-smith/files/ibays/Primary/html/ + chown root:root /home/e-smith/files/ibays/Primary/html/cacrl.pem + chmod 644 /home/e-smith/files/ibays/Primary/html/cacrl.pem +fi +