From 3daede5bb47d4fd9eed790652d160475558566e6 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 27 Aug 2013 16:03:14 +0200 Subject: [PATCH] Add a event script to copy the global cert bundle to fusioninventory settings dir, so it can be deployed on clients --- createlinks | 7 +++++++ root/etc/e-smith/events/actions/wpkg-fusioninventory-cacert | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 createlinks create mode 100644 root/etc/e-smith/events/actions/wpkg-fusioninventory-cacert diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..a95f051 --- /dev/null +++ b/createlinks @@ -0,0 +1,7 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +event_link("wpkg-fusioninventory-cacert", "wpkg-update", "30"); +event_link("wpkg-fusioninventory-cacert", "bootstrap-console-save", "80"); + diff --git a/root/etc/e-smith/events/actions/wpkg-fusioninventory-cacert b/root/etc/e-smith/events/actions/wpkg-fusioninventory-cacert new file mode 100644 index 0000000..95796ca --- /dev/null +++ b/root/etc/e-smith/events/actions/wpkg-fusioninventory-cacert @@ -0,0 +1,3 @@ +#!/bin/sh + +/bin/cp -f /etc/pki/tls/certs/ca-bundle.crt /home/e-smith/files/shares/wpkg/files/settings/fusioninventory/cacert.pem