seed user root folder

This commit is contained in:
Mark Moser 2016-10-06 22:26:37 -05:00
parent 697c896277
commit 31cbdf86a5

View File

@ -11,6 +11,7 @@ class FtpConfig
def build_user_configs accounts
Array(accounts).each do |account|
File.open("#{config_path}#{account.username}", "w+") do |file|
FileUtils.mkdir_p "#{ftp_root}#{account.home_folder}"
file.write "local_root=#{ftp_root}#{account.home_folder}"
end
end