add restart
All checks were successful
Deploy ${{ gitea.repository }} / build (push) Successful in 59s

This commit is contained in:
Adam Jeniski 2025-11-15 19:46:48 -10:00
parent 97c0008c42
commit dc0940caa5

9
restart.sh Normal file
View File

@ -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