|
|
@ -1,6 +1,6 @@
|
|
|
|
from os import system, mkdir
|
|
|
|
from os import system, mkdir
|
|
|
|
from db import *
|
|
|
|
from db import *
|
|
|
|
from shutil import copyfile, make_archive, rmtree
|
|
|
|
from shutil import copyfile, make_archive, rmtree, copytree
|
|
|
|
from tqdm import tqdm
|
|
|
|
from tqdm import tqdm
|
|
|
|
|
|
|
|
|
|
|
|
from verify import *
|
|
|
|
from verify import *
|
|
|
@ -95,10 +95,11 @@ elif op == "3":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Копируем файлы из mysites в cached
|
|
|
|
# Копируем файлы из mysites в cached
|
|
|
|
copyfile(f"mysites/{domain}", "cached/{domain}")
|
|
|
|
rmtree(f"cached/{domain}")
|
|
|
|
copyfile(f"mysites/{domain}.pem", "cached/{domain}.pem")
|
|
|
|
copytree(f"mysites/{domain}", f"cached/{domain}")
|
|
|
|
copyfile(f"mysites/{domain}.sig", "cached/{domain}.sig")
|
|
|
|
copyfile(f"mysites/{domain}.pem", f"cached/{domain}.pem")
|
|
|
|
copyfile(f"mysites/{domain}.zip", "cached/{domain}.zip")
|
|
|
|
copyfile(f"mysites/{domain}.sig", f"cached/{domain}.sig")
|
|
|
|
|
|
|
|
copyfile(f"mysites/{domain}.zip", f"cached/{domain}.zip")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -115,6 +116,8 @@ http_port = client(serv_port, f"is_{domain}")
|
|
|
|
print("Получаем все порты...")
|
|
|
|
print("Получаем все порты...")
|
|
|
|
ports = port_check(serv_port)
|
|
|
|
ports = port_check(serv_port)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print(ports)
|
|
|
|
|
|
|
|
|
|
|
|
print("Публикуем сайт...")
|
|
|
|
print("Публикуем сайт...")
|
|
|
|
for port in tqdm(ports):
|
|
|
|
for port in tqdm(ports):
|
|
|
|
client(port, f"publish_{domain}<>{http_port}")
|
|
|
|
client(port, f"publish_{domain}<>{http_port}")
|
|
|
|