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