mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] Use systemctl to reload nginx
This commit is contained in:
parent
4803879f5c
commit
cccdc6e733
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ CONFIG_NGINX () {
|
||||||
sed -i "s@YNH_EXAMPLE_PORT@$port@" $nginx_conf
|
sed -i "s@YNH_EXAMPLE_PORT@$port@" $nginx_conf
|
||||||
sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf
|
sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf
|
||||||
cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
service nginx reload
|
systemctl reload nginx
|
||||||
}
|
}
|
||||||
|
|
||||||
REMOVE_DUNITER () {
|
REMOVE_DUNITER () {
|
||||||
|
|
|
@ -24,7 +24,7 @@ yunohost service remove $app
|
||||||
|
|
||||||
# Remove Nginx configuration
|
# Remove Nginx configuration
|
||||||
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
service nginx reload
|
systemctl reload nginx
|
||||||
|
|
||||||
# Close opened port
|
# Close opened port
|
||||||
yunohost firewall disallow TCP $port
|
yunohost firewall disallow TCP $port
|
||||||
|
|
Loading…
Add table
Reference in a new issue