Fixing vsftpd regarding the anonymous user (some script lines had to be run

only in the case the anonymous user service were enabled)


svn path=/nixos/trunk/; revision=21669
This commit is contained in:
Lluís Batlle i Rossell 2010-05-08 19:12:36 +00:00
parent f8ff75202e
commit 0d92459fb5

View File

@ -123,8 +123,11 @@ in
secure_chroot_dir=/var/ftp/empty
EOF
${if cfg.anonymousUser then ''
mkdir -p ${cfg.anonymousUserHome}
chown -R ftp:ftp ${cfg.anonymousUserHome}
'' else ""}
}
'';
exec = "${vsftpd}/sbin/vsftpd /etc/vsftpd.conf";