From f3a2b7287012d3021859007ef8ced28fe5ab7177 Mon Sep 17 00:00:00 2001 From: Juri Jensen Date: Mon, 17 Sep 2001 10:59:52 +0000 Subject: * Fixed some typos. * Added samba/netlogon/common.bat --- cfengine/cf.services.file | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'cfengine') diff --git a/cfengine/cf.services.file b/cfengine/cf.services.file index eb347f6..2968dc4 100644 --- a/cfengine/cf.services.file +++ b/cfengine/cf.services.file @@ -232,10 +232,10 @@ editfiles: # # [programmer] # - BeginGroupIfNoLineMatching "^\[programmer\]" - Append '[programmer]' + BeginGroupIfNoLineMatching "^\[software\]" + Append '[software]' Append ' path = $(pgrshare)' - Append ' comment = Programmer' + Append ' comment = Fælles software' Append ' browsable = yes' Append ' guest ok = yes' Append ' writeable = yes' @@ -266,7 +266,7 @@ editfiles: BeginGroupIfFileIsNewer "/etc/local-COMMON/samba/smb-shares-$(site).conf" EmptyEntireFilePlease InsertFile "/etc/local-COMMON/samba/smb-shares-$(site).conf" - Append "# Edited by cfengine $(date)" + Append "; Edited by cfengine $(date)" EndGroup DefineClasses "samba_reload" } @@ -296,6 +296,23 @@ editfiles: EndGroup } + # + # Batch file for mounting shares automatically + # + { /etc/samba/netlogon/common.bat + # + # We don't make this file dynamically, but instead we copy the contents + # of a master file, but only if it's newer than the one installed. + # + BeginGroupIfFileIsNewer "/etc/local-COMMON/samba/netlogon/common.bat" + AutoCreate + EmptyEntireFilePlease + InsertFile "/etc/local-COMMON/samba/netlogon/common.bat" + Append "rem Edited by cfengine $(date)" + EndGroup + DefineClasses "samba_reload" + } + lprng:: { /etc/samba/smb.conf # -- cgit v1.2.3