Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Boyer authored Dec 2, 2023
1 parent c4a8a6e commit 6056a1b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions grav/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ cd /var/www/html/user
git pull origin $HEAD_BRANCH
echo "done"

echo "Creating admin user..."
cp "/vault/secrets/$ADMIN_VAULT_SECRET" /var/www/html/user/accounts/admin.yaml
if [ ! -f "/var/www/html/user/accounts/admin.yaml" ]; then
echo "Creating admin user..."
cp "/vault/secrets/$ADMIN_VAULT_SECRET" /var/www/html/user/accounts/admin.yaml
echo done
fi

echo "Creating sre user..."
cp "/vault/secrets/$SRE_VAULT_SECRET" /var/www/html/user/accounts/sre.yaml
echo done

rm /var/www/html/user/config/security.yaml
ln -s /vault/secrets/salt /var/www/html/user/config/security.yaml

apache2-foreground
apache2-foreground

0 comments on commit 6056a1b

Please sign in to comment.