[refs #838] add new file_store system user

This commit is contained in:
Alexander Machehin 2013-01-18 20:24:53 +06:00
parent af73abbf31
commit fa41834a2d
1 changed files with 4 additions and 5 deletions

View File

@ -4,8 +4,7 @@ ARCHES.each do |arch|
Arch.find_or_create_by_name arch
end
user = User.new uname: 'rosa_system', email: 'rosa_system@rosalinux.ru', password: SecureRandom.base64
user.confirmed_at, user.role = Time.now.utc, 'system'; user.save
user = User.new uname: 'iso_worker_1', email: 'iso_worker_1@rosalinux.ru', password: SecureRandom.base64
%w(rosa_system iso_worker_1 file_store).each do |uname|
user = User.new uname: uname, email: "#{uname}@rosalinux.ru", password: SecureRandom.base64
user.confirmed_at, user.role = Time.now.utc, 'system'; user.save
end