diff options
-rw-r--r-- | cfengine/cf.services.file | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cfengine/cf.services.file b/cfengine/cf.services.file index ac1927b..d3b6e21 100644 --- a/cfengine/cf.services.file +++ b/cfengine/cf.services.file @@ -177,7 +177,7 @@ editfiles: # # Append the include lines for the shares definition file # - AppendIfNoSuchLine "include = /etc/samba/smb-shares-$(site).conf" + AppendIfNoSuchLine "include = /etc/samba/smb-shares.conf" DefineClasses "samba_reload" } @@ -203,8 +203,9 @@ editfiles: # Check if the shares definitions have changed # { /etc/samba/smb-shares.conf + SetScript "m4 -DFQDN=$(fqhost) /etc/local-COMMON/samba/smb-shares.conf.m4 > /etc/samba/smb-shares.conf" BeginGroupIfFileIsNewer "/etc/local-COMMON/file-$(fqhost).m4" - AutoCreate + RunScript EndGroup DefineClasses "samba_rebuild_shares:samba_reload" } |