diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-10-25 08:10:37 +0000 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-10-25 08:10:37 +0000 |
commit | 067845f392c48b5cb9d715cd8d3e4187141d87a5 (patch) | |
tree | c387d1f9dcbccdb91f61c88e1a160342e7217990 /ftp/vsftpd/files | |
parent | c8a9af23edd0a8c74bda6639d886dd89d0d32c29 (diff) | |
download | FreeBSD-ports-067845f392c48b5cb9d715cd8d3e4187141d87a5.zip FreeBSD-ports-067845f392c48b5cb9d715cd8d3e4187141d87a5.tar.gz |
- more fixes for rc_ng script.
Problems reported by: Marius Korsmo
Diffstat (limited to 'ftp/vsftpd/files')
-rw-r--r-- | ftp/vsftpd/files/vsftpd.sh.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ftp/vsftpd/files/vsftpd.sh.in b/ftp/vsftpd/files/vsftpd.sh.in index 6f86dea..cbff7e0 100644 --- a/ftp/vsftpd/files/vsftpd.sh.in +++ b/ftp/vsftpd/files/vsftpd.sh.in @@ -27,12 +27,15 @@ required_files="%%PREFIX%%/etc/$name.conf" vsftpd_check() { - cat ${required_files} | egrep -E "^listen.*=.*YES$" > /dev/null - if [ $? = 1 ]; then + if grep -q "^ftp[ ]" /etc/inetd.conf + then + err 1 "ftp is already activated in /etc/inetd.conf" + fi + if ! egrep -q -i -E "^listen.*=.*YES$" + then err 1 "vsftpd script need "listen=YES" on config file" fi - cat ${required_files} | egrep -E "^background.*=.*YES$" > /dev/null - if [ $? = 1 ]; then + if ! egrep -q -i -E "^background.*=.*YES$" err 1 "vsftpd script need "background=YES" on config file" fi } |