blob: 669d2a97f5580b8bcfd9b99726501a30fc26cd44 (
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 ~'
- EndGroup
- LocateLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]]+~$"
- ReplaceLineWith 'DefaultRoot ~'
- EndGroup
- UnsetAbort "^[[:blank:]]*VirtualHost[[:blank:]]*.*$"
- }
- processes:
- "proftpd" restart "/etc/init.d/proftpd restart"
- shellcommands:
- proftpd_reload::
- "/etc/init.d/proftpd force-reload"
|