feat: added to vcs the update script for hs

This commit is contained in:
Floriansylvain
2026-02-10 19:00:37 +01:00
parent 4cd2192953
commit 82bfeadff3
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Pull latest changes from git repository
echo "Pulling latest changes..."
git pull
# Check if git pull was successful
if [ $? -eq 0 ]; then
echo "Git pull successful. Restarting compact-portfolio service..."
sudo systemctl restart compact-portfolio.service
# Check if service restart was successful
if [ $? -eq 0 ]; then
echo "Service restarted successfully."
else
echo "Failed to restart service."
exit 1
fi
else
echo "Git pull failed. Service not restarted."
exit 1
fi
echo "Deployment completed successfully!"