From 367dfc7afa33ef8352dc135a63cdbed9d3d7b19b Mon Sep 17 00:00:00 2001 From: root Date: Thu, 19 Mar 2026 15:14:24 +0300 Subject: [PATCH] update --- code/gitup.sh | 1 + code/sergay.json | 24 ++++++++++++++++++++++++ code/sergay.py | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/code/gitup.sh b/code/gitup.sh index 60892bc..e9d24b6 100755 --- a/code/gitup.sh +++ b/code/gitup.sh @@ -17,3 +17,4 @@ fi git pull --rebase "http://usergit.duckdns.org/igor/sergay.git" main || exit 1 git push "http://igor:${GIT}@usergit.duckdns.org/igor/sergay.git" +cp /root/sergay/code/sergay.json /root/api/sergay.json diff --git a/code/sergay.json b/code/sergay.json index fb07ad2..65e7ac9 100644 --- a/code/sergay.json +++ b/code/sergay.json @@ -286,5 +286,29 @@ { "id": 72, "72": "любит когда его дрючат в жопу потные мужички" + }, + { + "id": 73, + "73": "это чмо+x" + }, + { + "id": 74, + "74": "перчаточный гей" + }, + { + "id": 75, + "75": "як" + }, + { + "id": 76, + "76": "домогается до одеяла" + }, + { + "id": 77, + "77": "автобот" + }, + { + "id": 78, + "78": "спиздил учебник и засунул в жопу" } ] \ No newline at end of file diff --git a/code/sergay.py b/code/sergay.py index f8d9024..78ee86c 100644 --- a/code/sergay.py +++ b/code/sergay.py @@ -101,7 +101,7 @@ def save_new_phrase(file_path: str, phrase: str) -> None: def restart_service() -> None: subprocess.Popen( - ["systemctl", "restart", SERVICE_NAME], + f"bash /root/sergay/code/gitup.sh && systemctl restart {SERVICE_NAME}", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, start_new_session=True,