Skip to content

Instantly share code, notes, and snippets.

@neidiom
Created April 3, 2018 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neidiom/331e730a1bc1930e87c70c3b28732b29 to your computer and use it in GitHub Desktop.
Save neidiom/331e730a1bc1930e87c70c3b28732b29 to your computer and use it in GitHub Desktop.
www_dir = '/var/www'
domain = 'nomimono.domain.com'
sajts = ['sajt99','sajt98','sajt97']
sajts.each do |sajt|
directory www_dir do
owner 'www-data'
group 'www-data'
mode '0755'
action :create
end
directory "#{www_dir}/#{sajt}.#{domain}/web" do
owner 'www-data'
group 'www-data'
mode '0755'
action :create
recursive true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment