Skip to content

Commit

Permalink
Fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bird committed Jun 5, 2024
1 parent 1842734 commit 3e5ea52
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deploy/deploy.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,3 +12,5 @@ cd /home/eaa/donation_portal
git pull
echo "Deployment completed successfully."
EOF

0 comments on commit 3e5ea52

Please sign in to comment.