Skip to content

Commit

Permalink
Added delay to support webtrees & db creation when using docker-compose
Browse files Browse the repository at this point in the history
Signed-off-by: H2CK <dev@jagel.net>
  • Loading branch information
H2CK committed May 9, 2022
1 parent 51cfdfb commit 8935913
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 06_initialize_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ then
sed -i 's/<WT_ADMIN_PW>/'"$(echo $WTCRYPT | sed -e 's/[]\/$*.^[]/\\&/g')"'/g' /mod_webtrees.sql
sed -i 's/<WT_ADMIN_MAIL>/'"$IDB_WT_ADMINMAIL"'/g' /mod_webtrees.sql
#Write to database
sleep 30
mysql -u "$IDB_USER" --password="$IDB_PASSWORD" -h "$IDB_HOST" < /mod_webtrees.sql
#Alternative to set Webtrees admin user:
#echo "UPDATE wt_user SET user_name='$IDB_WT_ADMIN', email='$IDB_WT_ADMINMAIL', real_name='Admin', password='$WTCRYPT' WHERE user_id=1" | mysql -u "$IDB_USER" --password="$IDB_PASSWORD" -h "$IDB_HOST" "$IDB_DB_NAME"
Expand Down

0 comments on commit 8935913

Please sign in to comment.