Skip to content

Commit

Permalink
[to master] update branchctl
Browse files Browse the repository at this point in the history
  • Loading branch information
nic11 committed Feb 1, 2025
1 parent 88ddba3 commit 7ae7f48
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions misc/deploy/remote/branchctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ set -x
action="${1:?}"
branch="${2:?}"

~/announce.sh "$branch" sys Сервер будет перезапущен через 1 минуту. || true
sleep 30
~/announce.sh "$branch" sys Сервер будет перезапущен через 30 секунд. || true
sleep 30
if [[ "$branch" == "indev" ]]; then
~/announce.sh "$branch" sys Сервер будет перезапущен через 1 минуту. || true
sleep 30
~/announce.sh "$branch" sys Сервер будет перезапущен через 30 секунд. || true
sleep 30
fi
~/announce.sh "$branch" sys Сервер перезапускается. Пожалуйста, перезайдите примерно через полторы минуты. || true
if [[ "$branch" == "sweetpie" ]]; then
~/logretainer/retain.sh || true
fi

cd "skymp-server-$branch"
docker stop "skymp-server-$branch" || true
Expand Down

0 comments on commit 7ae7f48

Please sign in to comment.