Skip to content

Commit

Permalink
fix: permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1ariel committed Nov 30, 2024
1 parent c2b24f1 commit 6e18e43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/start_application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ echo "Fetching secrets from AWS Parameter Store..."
DB_URL=$(aws ssm get-parameter --name "/digistab_store/prod/database_url" --with-decryption --query Parameter.Value --output text)
KEY_BASE=$(aws ssm get-parameter --name "/digistab_store/prod/secret_key_base" --with-decryption --query Parameter.Value --output text)


echo "Setting up directory permissions..."
mkdir -p /opt/digistab_store/_build/prod/rel/digistab_store/tmp
chown -R ubuntu:ubuntu /opt/digistab_store/_build/prod/rel/digistab_store/tmp
chmod -R 755 /opt/digistab_store/_build/prod/rel/digistab_store/tmp

echo "Creating systemd service file..."
sudo tee /etc/systemd/system/digistab_store.service > /dev/null << EOL
[Unit]
Expand Down

0 comments on commit 6e18e43

Please sign in to comment.