summaryrefslogtreecommitdiff
path: root/system/cfengine/doinst.sh
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 22:26:30 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:26:30 +0200
commitccd4daa81cc9294c4d7beee7fc21f540b0463306 (patch)
tree52917e2ff28b4efc8d477ad57c63c445b65e0bfe /system/cfengine/doinst.sh
parent588875632e3a4a12ee1748d882f8f4e9e9541291 (diff)
downloadslackbuilds-ccd4daa81cc9294c4d7beee7fc21f540b0463306.tar.gz
system/cfengine: Updated for version 2.2.8
Diffstat (limited to 'system/cfengine/doinst.sh')
-rw-r--r--system/cfengine/doinst.sh20
1 files changed, 13 insertions, 7 deletions
diff --git a/system/cfengine/doinst.sh b/system/cfengine/doinst.sh
index 5740fda749..43efbf8aa3 100644
--- a/system/cfengine/doinst.sh
+++ b/system/cfengine/doinst.sh
@@ -11,16 +11,22 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-# Keep same perms on rc.cfengine:
-if [ -e etc/rc.d/rc.cfengine ]; then
- cp -a etc/rc.d/rc.cfengine etc/rc.d/rc.cfengine.new.incoming
- cat etc/rc.d/rc.cfengine.new > etc/rc.d/rc.cfengine.new.incoming
- mv etc/rc.d/rc.cfengine.new.incoming etc/rc.d/rc.cfengine.new
-fi
+# Keep same permissions on rc files:
+for PRGNAM in cfengine cfenvd cfservd ; do
+ if [ -e etc/rc.d/rc.$PRGNAM ]; then
+ cp -a etc/rc.d/rc.$PRGNAM etc/rc.d/rc.$PRGNAM.new.incoming
+ cat etc/rc.d/rc.$PRGNAM.new > etc/rc.d/rc.$PRGNAM.new.incoming
+ mv etc/rc.d/rc.$PRGNAM.new.incoming etc/rc.d/rc.$PRGNAM.new
+ fi
+ config etc/rc.d/rc.$PRGNAM.new
+done
-config etc/rc.d/rc.cfengine.new
config var/cfengine/inputs/update.conf.new
config var/cfengine/inputs/cfagent.conf.new
config var/cfengine/inputs/cfservd.conf.new
config var/cfengine/inputs/cfrun.hosts.new
+# Following link is for some backwards compatibility
+if [ ! -d var/cfengine/bin ]; then mkdir -p var/$PRGNAM/bin ; fi
+( cd var/cfengine/bin ; ln -sf ../../../usr/sbin/cfagent . )
+