[INFRA] migrate active old VPS 193.233.210.184 to 45.133.209.253
lint / hygiene (push) Failing after 30s
lint / hygiene (pull_request) Failing after 21s
standard / check (push) Successful in 9s
standard / check (pull_request) Successful in 14s

This commit is contained in:
architect committed 2026-12-02 18:00:21 +03:00
1 parent d2c6a1a51f
commit c985c0617b
107 files changed
+304 -186

No files matched your search

+3 -3
View File
@@ -31,7 +31,7 @@ echo " $NEW свободен"
echo
echo "=== 2. КОПИИ КОНФИГУРАЦИИ ==="
cp -p /etc/pve/lxc/$CT.conf /root/lxc-$CT.conf.before-ip 2>/dev/null && echo " конфигурация CT сохранена"
ssh -o BatchMode=yes root@193.233.210.184 "cp -p /etc/nginx/conf.d/buryans-all.conf /etc/nginx/conf.d/buryans-all.conf.before-ct111-ip" 2>&1 | sed 's/^/ /'
ssh -o BatchMode=yes root@45.133.209.253 "cp -p /etc/nginx/conf.d/buryans-all.conf /etc/nginx/conf.d/buryans-all.conf.before-ct111-ip" 2>&1 | sed 's/^/ /'
cp -p /opt/buryan-hub/scripts/check-services.sh /opt/buryan-hub/scripts/check-services.sh.before-ip && echo " наблюдение сохранено"
cd /root/buryan-infra && cp -p ops/update-manager/services.yaml /root/services.yaml.before-ip && echo " реестр сохранён"
@@ -65,8 +65,8 @@ echo " example.com: HTTP ${code:-нет связи}"
echo
echo "=== 6. ОБНОВЛЯЮ ССЫЛКИ ==="
echo " --- внешний nginx ---"
ssh -o BatchMode=yes root@193.233.210.184 "sed -i 's|http://$OLD:|http://$NEW:|g' /etc/nginx/conf.d/buryans-all.conf && nginx -t 2>&1 | tail -1 && systemctl reload nginx" 2>&1 | sed 's/^/ /'
ssh -o BatchMode=yes root@193.233.210.184 "grep -c '$NEW' /etc/nginx/conf.d/buryans-all.conf" 2>&1 | sed 's/^/ ссылок обновлено: /'
ssh -o BatchMode=yes root@45.133.209.253 "sed -i 's|http://$OLD:|http://$NEW:|g' /etc/nginx/conf.d/buryans-all.conf && nginx -t 2>&1 | tail -1 && systemctl reload nginx" 2>&1 | sed 's/^/ /'
ssh -o BatchMode=yes root@45.133.209.253 "grep -c '$NEW' /etc/nginx/conf.d/buryans-all.conf" 2>&1 | sed 's/^/ ссылок обновлено: /'
echo " --- наблюдение ---"
sed -i "s|192\.168\.1\.111|$NEW|g" /opt/buryan-hub/scripts/check-services.sh