diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-10-25 16:10:37 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-10-25 16:10:37 +0800 |
commit | 067845f392c48b5cb9d715cd8d3e4187141d87a5 (patch) | |
tree | c387d1f9dcbccdb91f61c88e1a160342e7217990 /ftp | |
parent | c8a9af23edd0a8c74bda6639d886dd89d0d32c29 (diff) | |
download | freebsd-ports-gnome-067845f392c48b5cb9d715cd8d3e4187141d87a5.tar.gz freebsd-ports-gnome-067845f392c48b5cb9d715cd8d3e4187141d87a5.tar.zst freebsd-ports-gnome-067845f392c48b5cb9d715cd8d3e4187141d87a5.zip |
- more fixes for rc_ng script.
Problems reported by: Marius Korsmo
Diffstat (limited to 'ftp')
-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 6f86deae4574..cbff7e00c8e1 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 } |