Skip to content

Commit

Permalink
Change path of database script to run inside docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes committed Oct 22, 2024
1 parent a6a8bb5 commit 646c758
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion roles/stepupwebauthn/templates/01-webauthn-db_init.sh.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash
#
#### To run the database init inside the docker :
# sudo docker cp /root/01-webauthn-db_init.sh webauthn:/
# sudo docker exec -it webauthn /bin/bash /01-webauthn-db_init.sh
####
#
#overwrite database settings for deploy
export DATABASE_URL=mysql://{{ database_webauthn_deploy_user }}:{{ mysql_passwords.webauthndeploy }}@{{ webauthn_db_host }}:3306/{{ database_webauthn_name }}
cd {{ current_release_symlink }}
cd /var/www/html
echo "Create database if not exists"
{{ php_cli }} bin/console doctrine:database:create --if-not-exists
echo "Create or migrate schema"
Expand Down

0 comments on commit 646c758

Please sign in to comment.