Create directory for staging environment.

This commit is contained in:
Kazuhiro MUSASHI 2019-11-10 11:45:29 +08:00
parent 4b157c3f5d
commit d6d8b2a5d2
1 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,10 @@
# Create the nginx directory:
directory '/var/www/blog' do
owner 'www-data'
group 'webadm'
mode '770'
%w( blog test ).each do |d|
directory "/var/www/#{d}" do
owner 'www-data'
group 'webadm'
mode '770'
end
end
# Add the fstab entry: