[enh] Use systemctl to reload nginx
This commit is contained in:
parent
4803879f5c
commit
cccdc6e733
|
@ -49,7 +49,7 @@ CONFIG_NGINX () {
|
|||
sed -i "s@YNH_EXAMPLE_PORT@$port@" $nginx_conf
|
||||
sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf
|
||||
cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
service nginx reload
|
||||
systemctl reload nginx
|
||||
}
|
||||
|
||||
REMOVE_DUNITER () {
|
||||
|
|
|
@ -24,7 +24,7 @@ yunohost service remove $app
|
|||
|
||||
# Remove Nginx configuration
|
||||
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
service nginx reload
|
||||
systemctl reload nginx
|
||||
|
||||
# Close opened port
|
||||
yunohost firewall disallow TCP $port
|
||||
|
|
Loading…
Reference in New Issue