This commit is contained in:
root 2025-10-02 10:08:01 +00:00
parent dba2222f46
commit bae6d8d98c
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -74,7 +74,7 @@ srt {
function update_service() function update_service()
{ {
system('sudo systemctl stop main-encoder'); system('sudo /bin/systemctl stop main-encoder');
$candidate = '/var/www/html/nginx.conf'; $candidate = '/var/www/html/nginx.conf';
$fallback = '/var/www/html/default_nginx.conf'; $fallback = '/var/www/html/default_nginx.conf';
@ -335,7 +335,7 @@ rtmp {
exec($restart_cmd, $out, $rc2); exec($restart_cmd, $out, $rc2);
} }
system('sudo systemctl restart main-encoder'); system('sudo /bin/systemctl restart main-encoder');
} }