From 82bfeadff34f19f7ffa1320109a1655861fa2687 Mon Sep 17 00:00:00 2001 From: Floriansylvain Date: Tue, 10 Feb 2026 19:00:37 +0100 Subject: [PATCH] feat: added to vcs the update script for hs --- update.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 update.sh diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..a0513db --- /dev/null +++ b/update.sh @@ -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!" \ No newline at end of file