Create sym-link to `/etc/nginx` config directories.
This commit is contained in:
parent
7349dc9b30
commit
eddc0a517f
|
@ -7,12 +7,18 @@
|
|||
end
|
||||
end
|
||||
|
||||
%w( sites-available sites-enabled stream-available stream-enabled).each do |d|
|
||||
directory "/etc/nginx/#{d}" do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '755'
|
||||
link '/etc/nginx/sites-enabled' do
|
||||
to '/home/webadm/repo/nginx-config/sites-available'
|
||||
user 'root'
|
||||
|
||||
notifies :reload, 'service[nginx]'
|
||||
end
|
||||
|
||||
link '/etc/nginx/stream-enabled' do
|
||||
to '/home/webadm/repo/nginx-config/stream-available'
|
||||
user 'root'
|
||||
|
||||
notifies :reload, 'service[nginx]'
|
||||
end
|
||||
|
||||
# Deploy the nginx configuration files:
|
||||
|
|
Loading…
Reference in New Issue