Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 282 Bytes
dep 'www user and group' do
www_name = Babushka::Base.host.osx? ? '_www' : 'www'
met? { grep(/^#{www_name}\:/, '/etc/passwd') and grep(/^#{www_name}\:/, '/etc/group') }
meet {
sudo "groupadd #{www_name}"
sudo "useradd -g #{www_name} #{www_name} -s /bin/false"
}
end
Something went wrong with that request. Please try again.