acl-dev / acl

C/C++ server and network library, including coroutine,redis client,http/https/websocket,mqtt, mysql/postgresql/sqlite client with C/C++ for Linux, Android, iOS, MacOS, Windows, etc..
https://acl-dev.cn
GNU Lesser General Public License v3.0
2.83k stars 937 forks source link

wizard模版中setup.sh文件获取Linux x86_64等类型的处理 #316

Closed laochen closed 11 months ago

laochen commented 11 months ago

acl/app/wizard/tmpl/http/setup.sh acl/app/wizard/tmpl/master/setup.sh

function guess_os() {
     os_name=`uname -s`
     os_type=`uname -p`

uname -p 好像改成 uname -m 好一点, 腾讯云他们弄的opencloudos 操作系统, 用 uname -p 输出为 ‘unknown’ 用uname -m 都会输出 x86_64 ,兼容性强一点

zhengshuxin commented 11 months ago

是的,已经修改了,谢谢。