#visudo
<?php
$output = shell_exec('sudo /usr/bin/systemctl restart wg-quick@wghub');
echo "<pre>$output</pre>";
?>
=
:server {
listen 8083;
root /www;
location = / {
# отдаём файл index.html
rewrite ^ /index.html break;
}
# всё остальное проксируем
location / {
proxy_pass http://localhost:8082;
...
}
}
$ apt show iwd
"$str2$str1"
'/usr/bin/python3 /opt/uccx-stats/uccx_parse.py /opt/uccx-stats/_uccx_csqstats.txt "FCCPS-CSQ - loggedinagents"'
подскажите, как это победить
#!/bin/bash
set -x
#Запуск скрипта в формате ./csqstats CSQ_name param
str1="$1 - $2"
str2="/usr/bin/python3 /opt/uccx-stats/uccx_parse.py /opt/uccx-stats/_uccx_csqstats.txt"
$str2 "$str1"