From dc0940caa540c7fdbca24aa9db66900fea50bda0 Mon Sep 17 00:00:00 2001 From: ajet Date: Sat, 15 Nov 2025 19:46:48 -1000 Subject: [PATCH] add restart --- restart.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 restart.sh diff --git a/restart.sh b/restart.sh new file mode 100644 index 0000000..573efd2 --- /dev/null +++ b/restart.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +JOB_ID="$(curl https://git.ajet.fyi/api/v1/repos/ajet-industries/blog?limit=1 -H "Content-Type: application/json" | jq '.id)' + +rm -rf /var/www/html/* +curl https://git.ajet.fyi/ajet-industries/blog/actions/runs/9/artifacts/blog --output /var/www/html +unzip /var/www/html/blog +rm /var/www/html/blog +systemctl restart nginx