diff options
Diffstat (limited to 'cfengine')
-rw-r--r-- | cfengine/cf.services.file | 2 | ||||
-rw-r--r-- | cfengine/cf.services.file.tmp.m4 | 4 | ||||
-rwxr-xr-x | cfengine/script.update_sambashares.sh | 7 |
3 files changed, 10 insertions, 3 deletions
diff --git a/cfengine/cf.services.file b/cfengine/cf.services.file index bf7ae59..be88959 100644 --- a/cfengine/cf.services.file +++ b/cfengine/cf.services.file @@ -208,7 +208,7 @@ editfiles: EmptyEntireFilePlease SetLine "# DO NOT EDIT - auto-created by cfengine $(date)" PrependIfNoLineMatching "^# .* cfengine .*" -# RunScript "/usr/bin/m4 -DFQDN=$(fqhost) /etc/local-COMMON/samba/smb-shares.conf.m4 >> /etc/samba/smb-shares.conf" + RunScript "/etc/local-COMMON/cfengine/script.update_sambashares.sh" EndGroup DefineClasses "samba_reload" } diff --git a/cfengine/cf.services.file.tmp.m4 b/cfengine/cf.services.file.tmp.m4 index 24c4ae9..732f746 100644 --- a/cfengine/cf.services.file.tmp.m4 +++ b/cfengine/cf.services.file.tmp.m4 @@ -2,11 +2,11 @@ ifelse(` /etc/cfengine/cf.services.file.tmp.m4 Copyright 2002 Jonas Smedegaard <dr@jones.dk> -$Id: cf.services.file.tmp.m4,v 1.1 2002-04-16 22:59:06 jonas Exp $ +$Id: cf.services.file.tmp.m4,v 1.2 2002-08-04 23:31:46 jonas Exp $ cfengine m4 skeleton file for cleaning up Samba and Netatalk shares -Usage: m4 -DFQDN=<FQDN> /etc/local-COMMON/cfengine/cf.services.file.m4 > /tmp/cf.services.file +Usage: m4 -DFQDN=<FQDN> /etc/local-COMMON/cfengine/cf.services.file.tmp.m4 > /tmp/cf.services.file Depend on file /etc/local-COMMON/file-<FQDN>.m4 containing lines of the following syntax: diff --git a/cfengine/script.update_sambashares.sh b/cfengine/script.update_sambashares.sh new file mode 100755 index 0000000..965abfb --- /dev/null +++ b/cfengine/script.update_sambashares.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo "\$1: $1" +echo "\$2: $2" +echo "\$3: $3" + +m4 -DFQDN=$(hostname -f) /etc/local-COMMON/samba/smb-shares.conf.m4 >> /etc/samba/smb-shares.conf |