blob: f90f8a3a01704a830f50869bc74ba87605d1ac12 (
plain)
- control:
- AddInstallable = ( proftpd_reload )
- editfiles:
- { /etc/proftpd.conf
- DefineClasses "proftpd_reload"
- AbortAtLineMatching "^[[:blank:]]*VirtualHost[[:blank:]]*.*$"
- #
- # LsDefaultOptions "-la"
- #
- WarnIfNoLineMatching "^[[:blank:]]*LsDefaultOptions[[:blank:]].*$"
- BeginGroupIfNoLineMatching "^[[:blank:]]*LsDefaultOptions[[:blank:]].*$"
- Append 'LsDefaultOptions "-la" # Added by cfengine'
- EndGroup
- LocateLineMatching "^[[:blank:]]*LsDefaultOptions[[:blank:]].*$"
- BeginGroupIfNoLineMatching '^[[:blank:]]*LsDefaultOptions[[:blank:]]"-la"([[:blank:]]+(#.*)?)?$'
- ReplaceLineWith 'LsDefaultOptions "-la" # Edited by cfengine'
- EndGroup
- #
- # DefaultRoot ~
- #
- WarnIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- Append 'DefaultRoot ~ # Added by cfengine'
- EndGroup
- LocateLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]]+~[[:blank:]].*$"
- ReplaceLineWith 'DefaultRoot ~ # Edited by cfengine'
- EndGroup
- UnsetAbort "^[[:blank:]]*VirtualHost[[:blank:]]*.*$"
- }
- processes:
- "proftpd" restart "/etc/init.d/proftpd restart"
- shellcommands:
- proftpd_reload::
- "/etc/init.d/proftpd force-reload"
|