diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-11-13 18:47:03 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-11-13 18:47:03 +0800 |
commit | d5a3003b541f958c5b68052f5ff8ce7a5e37f338 (patch) | |
tree | c2e5c37ea58ad3f45e5c9795d919354fb9fe610b | |
parent | 65a1f97b2043f9faaa891b9a863f8803e101b8d4 (diff) | |
download | freebsd-ports-gnome-d5a3003b541f958c5b68052f5ff8ce7a5e37f338.tar.gz freebsd-ports-gnome-d5a3003b541f958c5b68052f5ff8ce7a5e37f338.tar.zst freebsd-ports-gnome-d5a3003b541f958c5b68052f5ff8ce7a5e37f338.zip |
- run vsftpd_check only when vsftpd_enable is set to YES
Submitted by: James O'Gorman
-rw-r--r-- | ftp/vsftpd/files/vsftpd.sh.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ftp/vsftpd/files/vsftpd.sh.in b/ftp/vsftpd/files/vsftpd.sh.in index 10090aac25a6..c03d75efe328 100644 --- a/ftp/vsftpd/files/vsftpd.sh.in +++ b/ftp/vsftpd/files/vsftpd.sh.in @@ -19,11 +19,12 @@ name="vsftpd" rcvar=`set_rcvar` load_rc_config "$name" -: ${vsftpd_enable="NO"} -: ${vsftpd_flags=""} +: ${vsftpd_enable:="NO"} +: ${vsftpd_flags:=""} command="%%PREFIX%%/libexec/$name ${vsftpd_flags}" required_files="%%PREFIX%%/etc/$name.conf" +start_precmd="vsftpd_check" vsftpd_check() { @@ -41,6 +42,4 @@ vsftpd_check() fi } -vsftpd_check - run_rc_command "$1" |