feat: delete

This commit is contained in:
hashbro
2026-09-02 04:54:28 +08:00
parent 5d64323191
commit 44bcfe544c
7 changed files with 99 additions and 27 deletions
+7 -4
View File
@@ -546,13 +546,16 @@ class ChannelProjectService
|| $exit === 9 || $exit === 137) {
return '堡塔防入侵拦截了 www 执行 python。软件商店 → 堡塔防入侵 → 看 www 拦截日志,把 venv python 与 /usr/bin/python3.10 加白后再建渠道';
}
if (! str_contains($hay, 'py7zr') && ! str_contains($hay, 'permission denied')
&& ! str_contains($hay, 'cannot open shared object')) {
if (str_contains($hay, 'permission denied')) {
return '属主不对(root 跑过构建后 www 删不掉旧文件)。执行: '
.'chown -R www:www /www/wwwroot/coruna-lab/storage /www/wwwroot/coruna-lab/public/details /www/wwwroot/coruna-lab/public/channel';
}
if (! str_contains($hay, 'py7zr') && ! str_contains($hay, 'cannot open shared object')) {
return '';
}
return '宝塔系统加固常去掉 /usr/bin/python3.10 与 venv 里 .so 的执行权限。'
.'请把 /www/wwwroot/coruna-lab 加入加固排除,并 chmod 755 系统 python 与 venv 下 *.so';
return 'venv 缺包或 .so 不可用。用 .venv/bin/pip install -r requirements.txt,'
.'并 chmod 755 /usr/bin/python3.10 与 venv 下 *.so';
}
/**