mirror of
https://github.com/IndeecFOX/zapret4rocket.git
synced 2026-04-28 11:29:49 +00:00
9 lines
575 B
Bash
9 lines
575 B
Bash
/opt/zapret/nfq/nfqws --dry-run --user="nobody"
|
|
/opt/zapret/nfq/nfqws --dry-run --user="$(head -n1 /etc/passwd | cut -d: -f1)"
|
|
if /opt/zapret/nfq/nfqws --dry-run --user="nobody" 2>&1 | grep -q "queue"; then
|
|
echo "WS_USER=nobody"
|
|
elif /opt/zapret/nfq/nfqws --dry-run --user="$(head -n1 /etc/passwd | cut -d: -f1)" 2>&1 | grep -q "queue"; then
|
|
echo "WS_USER=$(head -n1 /etc/passwd | cut -d: -f1)"
|
|
else
|
|
echo -e "${yellow}WS_USER не подошёл. Скорее всего будут проблемы. Если что - пишите в саппорт${plain}"
|
|
fi
|