From 7254175cdb4267fb0cb720c02a973a416f31108d Mon Sep 17 00:00:00 2001 From: "Choi A.K." Date: Fri, 5 Sep 2025 15:10:42 +0900 Subject: [PATCH] migrations --- bin/update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/update.sh b/bin/update.sh index 42296d7..f0259fa 100644 --- a/bin/update.sh +++ b/bin/update.sh @@ -1,6 +1,16 @@ #!/bin/bash set -e +echo "[update.sh] Проверка bot.db..." +if [ -d "bot.db" ]; then + echo "Удаляю папку bot.db..." + rm -rf bot.db +fi +if [ ! -f "bot.db" ]; then + echo "Создаю пустой файл bot.db..." + touch bot.db +fi + echo "[update.sh] Получение свежего кода..." git pull