From 5a84ceedfb8d9105099ccdb0431d050c0a17e9cf Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 7 Feb 2016 12:30:01 +0100 Subject: added a local cfengine build --- INSTALL/cfengine-lts/cfengine.install | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 INSTALL/cfengine-lts/cfengine.install (limited to 'INSTALL/cfengine-lts/cfengine.install') diff --git a/INSTALL/cfengine-lts/cfengine.install b/INSTALL/cfengine-lts/cfengine.install new file mode 100644 index 0000000..fad7bba --- /dev/null +++ b/INSTALL/cfengine-lts/cfengine.install @@ -0,0 +1,24 @@ +post_install() { + + if [ ! -f /var/cfengine/ppkeys/localhost.priv ]; then + cf-key > /dev/null + fi + + if ! [ -f /var/cfengine/masterfiles/promises.cf ]; then + cp -R /usr/share/CoreBase/* /var/cfengine/masterfiles/ + fi + + if ! [ -f /var/cfengine/bin/cf-promises ]; then + cd /var/cfengine/bin + ln -s /usr/bin/cf-* . + fi + + echo "Bootstrap cfengine with cf-agent --bootstrap " + +} +post_remove() { + + if [ -d /var/cfengine/bin ]; then + rm /var/cfengine/bin/* + fi +} -- cgit v1.2.3-54-g00ecf