MainPage/upload.sh
moonlightwatch 971185b664
All checks were successful
Upload / Explore-Gitea-Actions (push) Successful in 46s
fix: upload target
2025-06-10 17:17:04 +08:00

15 lines
1.3 KiB
Bash

#!/bin/bash
chmod 600 id_rsa
ssh -o StrictHostKeyChecking=no -i ./id_rsa root@123.60.145.249 "rm -rf /opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/*"
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./bg.jpg root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./bookmarks.html root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./favicon.ico root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./index.html root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./logo_white.png root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./bootstrap.min.css root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/
scp -o StrictHostKeyChecking=no -r -i ./id_rsa ./bootstrap.bundle.min.js root@123.60.145.249:/opt/1panel/apps/openresty/openresty/www/sites/www.xn--ghqz22d40r52n.com/index/