diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-01-26 14:30:08 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-01-26 14:30:08 +0100 |
commit | e042b7bced715a9d0d6c660df453b1b68f263316 (patch) | |
tree | 13f1bcd2f7cccf87718d92b5fc9a112d4c3ea455 /proftpd | |
parent | c778483fbd7829e2d41157ae6be2d7f1eef709f5 (diff) |
Drop ancient unused files.
Diffstat (limited to 'proftpd')
-rwxr-xr-x | proftpd/proftpd.cf | 46 | ||||
-rwxr-xr-x | proftpd/proftpd_stricter.cf | 94 |
2 files changed, 0 insertions, 140 deletions
diff --git a/proftpd/proftpd.cf b/proftpd/proftpd.cf deleted file mode 100755 index 0c77bd4..0000000 --- a/proftpd/proftpd.cf +++ /dev/null @@ -1,46 +0,0 @@ -#! /usr/bin/cfengine -qf - -control: - OutputPrefix = ("${cf_prefix}") - actionsequence = ( - editfiles - shellcommands - processes - ) - AddInstallable = ( proftpd_reload ) - EditfileSize = ( 10000 ) - -editfiles: - any:: - { /etc/proftpd.conf - DefineClasses "proftpd_reload" - AbortAtLineMatching "^[[:blank:]]*VirtualHost[[:blank:]]*.*$" - # - # ListOptions "-la" - # - WarnIfNoLineMatching "^[[:blank:]]*ListOptions[[:blank:]].*$" - BeginGroupIfNoLineMatching "^[[:blank:]]*ListOptions[[:blank:]].*$" - Append 'ListOptions "-la" # Added by cfengine' - EndGroup - LocateLineMatching "^[[:blank:]]*ListOptions[[:blank:]].*$" - BeginGroupIfNoLineMatching '^[[:blank:]]*ListOptions[[:blank:]]"-la"([[:blank:]]+(#.*)?)?$' - ReplaceLineWith 'ListOptions "-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" diff --git a/proftpd/proftpd_stricter.cf b/proftpd/proftpd_stricter.cf deleted file mode 100755 index 1ea0528..0000000 --- a/proftpd/proftpd_stricter.cf +++ /dev/null @@ -1,94 +0,0 @@ -#! /usr/bin/cfengine -qf - -control: - OutputPrefix = ("${cf_prefix}") - AddInstallable = ( proftpd_reload ) - actionsequence = ( - editfiles - shellcommands - processes - ) - -editfiles: - { /etc/proftpd.conf - DefineClasses "proftpd_reload" - # - # LsDefaultOptions -> ListOptions - # - # (Replace everywhere, as the daemon fails if the - # deprecated option exists) - # - ResetSearch "1" - ReplaceAll "LsDefaultOptions" With "ListOptions" - # - # (Make sure (remaining) cfengine hacks happens outside - # of virtual hosts) - # - ResetSearch "1" - BeginGroupIfNoSuchLine "# BEGIN CFENGINE" - BeginGroupIfNoLineMatching "^[[:blank:]]*VirtualHost[[:blank:]].*" - Append "" - Append "# BEGIN CFENGINE" - Append "# END CFENGINE (no virtual hosts above this line, please!)" - EndGroup - BeginGroupIfNoLineMatching "^# BEGIN CFENGINE.*" - LocateLineMatching "^[[:blank:]]*VirtualHost[[:blank:]]" - IncrementPointer "-1" - InsertLine "" - InsertLine "# BEGIN CFENGINE" - InsertLine "# END CFENGINE (no virtual hosts above this line, please!)" - InsertLine "" - EndGroup - EndGroup - # - # (Later options override earlier ones, so care only - # about our own area from here on) - # - AbortAtLineMatching "^# END CFENGINE.*$" - # - # ListOptions "-la" - # - CatchAbort - ResetSearch "1" - LocateLineMatching "^# BEGIN CFENGINE" -# WarnIfNoLineMatching "^[[:blank:]]*ListOptions[[:blank:]].*" - BeginGroupIfNoLineMatching "^[[:blank:]]*ListOptions[[:blank:]].*" -# LocateLineMatching "^# BEGIN CFENGINE" -# InsertLine 'ListOptions "-la"' - InsertLine "DefaultRooddddt ~" - EndGroup - CatchAbort - ResetSearch "1" - LocateLineMatching "^# BEGIN CFENGINE" - LocateLineMatching "^[[:blank:]]*ListOptions[[:blank:]].*" - BeginGroupIfNoLineMatching '^[[:blank:]]*ListOptions[[:blank:]]"-la"([[:blank:]]+(#.*)?)?$' - ReplaceLineWith 'ListOptions "-la"' - EndGroup - CatchAbort - # - # DefaultRoot ~ - # - ResetSearch "1" - LocateLineMatching "^# BEGIN CFENGINE" - WarnIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*" - BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*" -# LocateLineMatching "^# BEGIN CFENGINE" - InsertLine 'DefaultRoot ~' - EndGroup - CatchAbort - ResetSearch "1" - LocateLineMatching "^# BEGIN CFENGINE" - LocateLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]].*" - BeginGroupIfNoLineMatching "^[[:blank:]]*DefaultRoot[[:blank:]]+~$" - ReplaceLineWith 'DefaultRoot ~' - EndGroup - CatchAbort - # - UnsetAbort "^# END CFENGINE.*$" - } -processes: - "proftpd" restart "/etc/init.d/proftpd restart" - -shellcommands: - proftpd_reload:: - "/etc/init.d/proftpd force-reload" |