diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-11 22:26:30 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:26:30 +0200 |
commit | ccd4daa81cc9294c4d7beee7fc21f540b0463306 (patch) | |
tree | 52917e2ff28b4efc8d477ad57c63c445b65e0bfe /system/cfengine/doinst.sh | |
parent | 588875632e3a4a12ee1748d882f8f4e9e9541291 (diff) |
system/cfengine: Updated for version 2.2.8
Diffstat (limited to 'system/cfengine/doinst.sh')
-rw-r--r-- | system/cfengine/doinst.sh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/system/cfengine/doinst.sh b/system/cfengine/doinst.sh index 5740fda749da5..43efbf8aa35e9 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 . ) + |