本次提交包含大量代码优化、功能新增与服务端配置更新: 1. 修复分析报告统计数据,调整CMake策略设置 2. 优化APP权限配置、编辑器与聊天界面组件 3. 更新依赖库版本与pubspec配置 4. 新增文件传输服务端、信令服务器相关配置与脚本 5. 完善用户注销功能与数据库迁移脚本 6. 优化多处动画效果、代码风格与日志输出 7. 新增多种调试与部署脚本,修复已知BUG
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
import paramiko
|
|
|
|
ssh = paramiko.SSHClient()
|
|
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
ssh.connect('123.207.67.197', 22, 'root', '520Kiss123')
|
|
|
|
print('=== Fix directory permissions ===')
|
|
stdin, stdout, stderr = ssh.exec_command(
|
|
'chown -R www:www /www/wwwroot/tools.wktyl.com/runtime/cloud_cache && '
|
|
'chmod -R 755 /www/wwwroot/tools.wktyl.com/runtime/cloud_cache && '
|
|
'ls -la /www/wwwroot/tools.wktyl.com/runtime/ | grep cloud'
|
|
)
|
|
print(stdout.read().decode())
|
|
print(stderr.read().decode())
|
|
|
|
print('=== Check web server user ===')
|
|
stdin, stdout, stderr = ssh.exec_command(
|
|
'ps aux | grep -E "nginx|php-fpm" | head -5'
|
|
)
|
|
print(stdout.read().decode())
|
|
|
|
print('=== Test upload again ===')
|
|
stdin, stdout, stderr = ssh.exec_command(
|
|
'curl -s -X POST "https://tools.wktyl.com/api/cloud_cache/upload" '
|
|
'-F "file=@/tmp/test_upload.txt" '
|
|
'-F "fromId=device_test" '
|
|
'-F "toId=device_test2" '
|
|
'-F "fileName=test.txt" '
|
|
'-F "fileSize=18" '
|
|
'-F "mimeType=text/plain"'
|
|
)
|
|
print(stdout.read().decode())
|
|
|
|
ssh.close()
|