Created
April 3, 2018 18:52
-
-
Save neidiom/331e730a1bc1930e87c70c3b28732b29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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