mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 03:24:29 +05:00
chore: use ls to look for nginx installation
This commit is contained in:
@@ -225,7 +225,7 @@ restart_MoonrakerTelegramBot(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
restart_nginx(){
|
restart_nginx(){
|
||||||
if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "nginx.service")" ]; then
|
if ls /lib/systemd/system/nginx.service 2>/dev/null 1>&2; then
|
||||||
status_msg "Restarting NGINX Service ..."
|
status_msg "Restarting NGINX Service ..."
|
||||||
sudo systemctl restart nginx && ok_msg "NGINX Service restarted!"
|
sudo systemctl restart nginx && ok_msg "NGINX Service restarted!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user