mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-01-07 13:07:56 +08:00
12 lines
184 B
Bash
12 lines
184 B
Bash
#!/bin/bash
|
|
|
|
config="/etc/cgproxy.conf"
|
|
source $config
|
|
|
|
# test suid bit
|
|
if [ -u "$(which cgattach)" ]; then
|
|
cgattach $$ $proxy_cgroup
|
|
else
|
|
sudo cgattach $$ $proxy_cgroup
|
|
fi
|
|
$@ |