summaryrefslogtreecommitdiff
path: root/ftp/vsftpd
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/vsftpd')
-rw-r--r--ftp/vsftpd/files/vsftpd.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftp/vsftpd/files/vsftpd.sh.in b/ftp/vsftpd/files/vsftpd.sh.in
index cbff7e00c8e1..23d4ea158688 100644
--- a/ftp/vsftpd/files/vsftpd.sh.in
+++ b/ftp/vsftpd/files/vsftpd.sh.in
@@ -27,15 +27,15 @@ required_files="%%PREFIX%%/etc/$name.conf"
vsftpd_check()
{
- if grep -q "^ftp[ ]" /etc/inetd.conf
+ if grep -q "^ftp[ ]" /etc/inetd.conf ${required_files}
then
err 1 "ftp is already activated in /etc/inetd.conf"
fi
- if ! egrep -q -i -E "^listen.*=.*YES$"
+ if ! egrep -q -i -E "^listen.*=.*YES$" ${required_files}
then
err 1 "vsftpd script need "listen=YES" on config file"
fi
- if ! egrep -q -i -E "^background.*=.*YES$"
+ if ! egrep -q -i -E "^background.*=.*YES$" ${required_files}
err 1 "vsftpd script need "background=YES" on config file"
fi
}