summaryrefslogtreecommitdiffstats
path: root/ftp/vsftpd/files
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2005-10-25 08:10:37 +0000
committerdinoex <dinoex@FreeBSD.org>2005-10-25 08:10:37 +0000
commit067845f392c48b5cb9d715cd8d3e4187141d87a5 (patch)
treec387d1f9dcbccdb91f61c88e1a160342e7217990 /ftp/vsftpd/files
parentc8a9af23edd0a8c74bda6639d886dd89d0d32c29 (diff)
downloadFreeBSD-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.in11
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
}
OpenPOWER on IntegriCloud