From 3e5ea522c30bb0c505442281f986e89653f7846e Mon Sep 17 00:00:00 2001 From: Andrew Bird Date: Wed, 5 Jun 2024 01:45:10 +0000 Subject: [PATCH] Fix deploy script --- deploy/deploy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index cc29578..ada126d 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -1,5 +1,9 @@ #!/bin/bash -sudo -u eaa -H -i + +# Run commands as user 'eaa' without an interactive shell +sudo -u eaa -H bash << EOF + +echo "Logged in successfully." # Navigate to the project directory cd /home/eaa/donation_portal @@ -8,3 +12,5 @@ cd /home/eaa/donation_portal git pull echo "Deployment completed successfully." + +EOF