Skip to content

Commit

Permalink
load env vars in after_install
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed May 3, 2024
1 parent 7024a41 commit 002d94b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/after_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ echo "=========================================" >> "$LOG_FILE"
echo "Running after_install.sh at $(date '+%Y-%m-%d %H:%M:%S')" >> "$LOG_FILE"
echo "=========================================" >> "$LOG_FILE"

# Load env vars
source /home/ec2-user/.bashrc

# Set correct ownership recursively for project directory
sudo chown -R ec2-user:nginx /home/ec2-user/django-indexer/
echo "$(date '+%Y-%m-%d %H:%M:%S') - Corrected ownership to ec2-user:nginx" >> "$LOG_FILE"
Expand Down

0 comments on commit 002d94b

Please sign in to comment.