emacs-collab/init_passwd.rb

7 lines
235 B
Ruby

require_relative '/emacs-collab/lib/emacscollab/collab'
EmacsCollab.get_projects.each do |p|
`groupadd -g #{p.uid} #{p.posixname}`
`useradd -d /home/#{p.posixname} -g #{p.uid} -M -s /usr/bin/eshell -u #{p.uid} #{p.posixname}`
end