fix: shellclash username not found

This commit is contained in:
SunBK201 2024-02-27 14:35:10 +08:00
parent 6452ce1ef9
commit 8b30efafd6
28 changed files with 23 additions and 16 deletions

View File

@ -67,9 +67,11 @@ reload_config
sudo -u nobody /root/ua3f sudo -u nobody /root/ua3f
``` ```
shellclash 用户建议使用以下命令启动: shellclash/shellcrash 用户建议使用以下命令启动:
```sh ```sh
sudo -u shellclash /root/ua3f sudo -u shellclash /root/ua3f
# 如果上面命令报错执行下面该命令
sudo -u shellcrash /root/ua3f
``` ```
### Clash 的配置建议 ### Clash 的配置建议

View File

@ -1,11 +1,11 @@
0633b3e96de371d7e211310bca1e0449 ./ua3f-0.2.2-386.tar.gz 971e6a8bac9a149c4c51bf8ae3b2a4bb ./ua3f-0.2.3-386.tar.gz
8b21828191fc96fe441b3a201565386a ./ua3f-0.2.2-amd64.tar.gz 0c6b28a26fb7fd496c2596fad56d806f ./ua3f-0.2.3-amd64.tar.gz
cf08ed73f076ea7813c4c8b01c069f83 ./ua3f-0.2.2-arm.tar.gz eb62d97cbedb95c5749d31840f300cfe ./ua3f-0.2.3-arm.tar.gz
52acd66840934c1e0b33b5758f2e7a56 ./ua3f-0.2.2-arm64.tar.gz f0ed5bd4bf7d735988d184e12842b101 ./ua3f-0.2.3-arm64.tar.gz
0adb6d8d61425843dc33b9a4c65d89e6 ./ua3f-0.2.2-armv7.tar.gz b997aec1bbc18f0d8bce860162580d31 ./ua3f-0.2.3-armv7.tar.gz
52acd66840934c1e0b33b5758f2e7a56 ./ua3f-0.2.2-armv8.tar.gz f0ed5bd4bf7d735988d184e12842b101 ./ua3f-0.2.3-armv8.tar.gz
1ba19d0590e0d153a5ebda87bfe33696 ./ua3f-0.2.2-mips64.tar.gz 16c0486a4753e7e6d4dd18ca99be948f ./ua3f-0.2.3-mips64.tar.gz
610e6de8680438aac19d14ebe4e35ae2 ./ua3f-0.2.2-mipsle-hardfloat.tar.gz a99e0855e1f42a1b9f316bb7e210cf4e ./ua3f-0.2.3-mipsle-hardfloat.tar.gz
7d1df04db98720cd2ab38e1eec57f0b5 ./ua3f-0.2.2-mipsle-softfloat.tar.gz b3c68980761d58b1242a160aae91f1d8 ./ua3f-0.2.3-mipsle-softfloat.tar.gz
45fd97fc797cdc31ff7629f2277ca576 ./ua3f-0.2.2-mipsle.tar.gz bff8cecc43baa286bdb0ea153ec0144e ./ua3f-0.2.3-mipsle.tar.gz
9b79aeadf5aec8256054c80676ecb8dd ./ua3f-0.2.2-riscv64.tar.gz f130bee316c952f039e582fff0831088 ./ua3f-0.2.3-riscv64.tar.gz

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/ua3f-0.2.3-386.tar.gz Normal file

Binary file not shown.

BIN
bin/ua3f-0.2.3-amd64.tar.gz Normal file

Binary file not shown.

BIN
bin/ua3f-0.2.3-arm.tar.gz Normal file

Binary file not shown.

BIN
bin/ua3f-0.2.3-arm64.tar.gz Normal file

Binary file not shown.

BIN
bin/ua3f-0.2.3-armv7.tar.gz Normal file

Binary file not shown.

BIN
bin/ua3f-0.2.3-armv8.tar.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
project_name="ua3f" project_name="ua3f"
release_version="0.2.2" release_version="0.2.3"
target=cmd/ua3f.go target=cmd/ua3f.go
release_dir=./bin release_dir=./bin

View File

@ -17,7 +17,7 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
var version = "0.2.2" var version = "0.2.3"
var payloadByte []byte var payloadByte []byte
var cache *expirable.LRU[string, string] var cache *expirable.LRU[string, string]
var HTTP_METHOD = []string{"GET", "POST", "HEAD", "PUT", "DELETE", "OPTIONS", "TRACE", "CONNECT"} var HTTP_METHOD = []string{"GET", "POST", "HEAD", "PUT", "DELETE", "OPTIONS", "TRACE", "CONNECT"}

View File

@ -20,12 +20,15 @@ ckcmd() {
cd /root cd /root
getcpucore getcpucore
version=0.2.2 version=0.2.3
ua3f_tar=ua3f-$version-$cpucore.tar.gz ua3f_tar=ua3f-$version-$cpucore.tar.gz
if id -u shellclash >/dev/null 2>&1; then if id -u shellclash >/dev/null 2>&1; then
chmod o+w /etc/clash >/dev/null 2>&1 chmod o+w /etc/clash >/dev/null 2>&1
fi fi
if id -u shellcrash >/dev/null 2>&1; then
chmod o+w /etc/clash >/dev/null 2>&1
fi
if [ -f "ua3f" ]; then if [ -f "ua3f" ]; then
rm "ua3f" rm "ua3f"

View File

@ -3,7 +3,7 @@ local uci = require("luci.model.uci").cursor()
ua3f = Map("ua3f", ua3f = Map("ua3f",
"UA3F", "UA3F",
[[ [[
<a href="https://github.com/SunBK201/UA3F" target="_blank">Version: 0.2.2</a> <a href="https://github.com/SunBK201/UA3F" target="_blank">Version: 0.2.3</a>
<br> <br>
Across the Campus we can reach every corner in the world. Across the Campus we can reach every corner in the world.
]] ]]

View File

@ -40,6 +40,8 @@ start_service() {
if id -u shellclash >/dev/null 2>&1; then if id -u shellclash >/dev/null 2>&1; then
procd_set_param user shellclash procd_set_param user shellclash
elif id -u shellcrash >/dev/null 2>&1; then
procd_set_param user shellcrash
elif id -u nobody >/dev/null 2>&1; then elif id -u nobody >/dev/null 2>&1; then
procd_set_param user nobody procd_set_param user nobody
fi fi