seed user root folder
This commit is contained in:
parent
697c896277
commit
31cbdf86a5
@ -11,6 +11,7 @@ class FtpConfig
|
|||||||
def build_user_configs accounts
|
def build_user_configs accounts
|
||||||
Array(accounts).each do |account|
|
Array(accounts).each do |account|
|
||||||
File.open("#{config_path}#{account.username}", "w+") do |file|
|
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}"
|
file.write "local_root=#{ftp_root}#{account.home_folder}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user