blob: 894f5669b1ea9aaad6502ed86e4da16d40f3b49d (
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 ~ users,!staff
- #
- WarnIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- Append 'DefaultRoot ~ users,!staff # Added by cfengine'
- EndGroup
- LocateLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*$"
- BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]]+~[[:blank:]]+users,!staff([[:blank:]]+(#.*)?)?$"
- ReplaceLineWith 'DefaultRoot ~ users,!staff # 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"
|