diff --git a/scripts/install b/scripts/install index 0f673bd..1702adf 100755 --- a/scripts/install +++ b/scripts/install @@ -40,4 +40,4 @@ if [[ $is_public -eq 1 ]]; then fi # Reload nginx service -service nginx reload +systemctl reload nginx diff --git a/scripts/remove b/scripts/remove index a31dfb3..32713ca 100755 --- a/scripts/remove +++ b/scripts/remove @@ -14,4 +14,4 @@ ynh_secure_remove /var/www/$app rm -f /etc/nginx/conf.d/$domain.d/$app.conf # Reload nginx service -service nginx reload +systemctl reload nginx diff --git a/scripts/restore b/scripts/restore index 4996dd2..89abc87 100755 --- a/scripts/restore +++ b/scripts/restore @@ -32,4 +32,4 @@ chown -R www-data: "$src_path" cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf" # Restart webserver -service nginx reload +systemctl reload nginx diff --git a/scripts/upgrade b/scripts/upgrade index a353afd..79820c9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,4 +49,4 @@ if [[ $is_public -eq 1 ]]; then fi # Reload nginx service -service nginx reload +systemctl reload nginx