diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2015-08-28 23:05:00 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2015-08-28 23:05:00 -0400 |
commit | f46bdf9d5bfc6eeae828539a234e957fe2b2e042 (patch) | |
tree | 560f0a1e67351a7a75900b4ddc41a34158873d72 /pcr/openrc-net/vsftpd-checkconfig.sh | |
parent | 698cfed94cf9c654ecf39a809821359ba6f4c70c (diff) | |
parent | da0dc67b72e2c1a374260ea6ef5aa3f0f805d90d (diff) |
merge
Diffstat (limited to 'pcr/openrc-net/vsftpd-checkconfig.sh')
-rw-r--r-- | pcr/openrc-net/vsftpd-checkconfig.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/pcr/openrc-net/vsftpd-checkconfig.sh b/pcr/openrc-net/vsftpd-checkconfig.sh deleted file mode 100644 index e1d1e5231..000000000 --- a/pcr/openrc-net/vsftpd-checkconfig.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -VSFTPD_CONF="${VSFTPD_CONF:-/etc/vsftpd/vsftpd.conf}" - -if [ ! -e ${VSFTPD_CONF} ] ; then - echo "Please setup ${VSFTPD_CONF} before starting vsftpd" >&2 - echo "There are sample configurations in /usr/share/doc/vsftpd" >&2 - exit 1 -fi - -if egrep -iq "^ *background *= *yes" "${VSFTPD_CONF}" ; then - echo "${VSFTPD_CONF} must not set background=YES" >&2 - exit 1 -fi - -has_ip=false has_ipv6=false ip_error=true -egrep -iq "^ *listen *= *yes" "${VSFTPD_CONF}" && has_ip=true -egrep -iq "^ *listen_ipv6 *= *yes" "${VSFTPD_CONF}" && has_ipv6=true -if ${has_ip} && ! ${has_ipv6} ; then - ip_error=false -elif ! ${has_ip} && ${has_ipv6} ; then - ip_error=false -fi -if ${ip_error} ; then - echo "${VSFTPD_CONF} must contain listen=YES or listen_ipv6=YES" >&2 - echo "but not both" >&2 - exit 1 -fi - |