This commit is contained in:
devdatt 2025-11-23 09:37:07 +05:30
parent b16263432b
commit 247322b2fd
2 changed files with 5 additions and 2 deletions

View File

@ -308,10 +308,13 @@ http {
exec("$nginx -t 2>&1", $output, $status);
if ($status === 0) {
exec("sudo systemctl restart nginx 2>&1", $o, $s);
exec('sudo systemctl enable encoder-rtmp');
exec('sudo systemctl restart encoder-rtmp');
} else {
exec('sudo cp /var/www/nginx.conf /etc/nginx/');
exec("sudo systemctl restart nginx");
exec('sudo systemctl stop encoder-rtmp');
exec('sudo systemctl disable encoder-rtmp');
}
} {
}

View File

@ -338,5 +338,5 @@ sudo systemctl status srt.service --no-pager
sudo systemctl enable --now nginx.service
sudo systemctl status nginx.service --no-pager
sudo chmod -R 777 /var/www/html/*
sudo chown -R www-data:www-data /var/www/html/*
sudo chmod 777 -R /var/www
sudo chown -R www-data:www-data /var/www