# Replace datasources connector parameters before execution.
sed -i -r -e "s/(\"host\":).*/\1 \"$MYSQLD_PORT_3306_TCP_ADDR\",/" \
   -e "s/(\"database\":).*/\1 \"matrixdb\",/" \
   -e "s/(\"username\":).*/\1 \"root\",/" \
   -e "s/(\"password\":).*/\1 \"$MYSQLD_ENV_MYSQL_ROOT_PASSWORD\",/" \
   /app/server/datasources.json


# Replace datasources connector parameters before execution.
sed -i -r -e "s/(\"host\":).*/\1 \"$MYSQLD_PORT_3306_TCP_ADDR\",/" \
   -e "s/(\"database\":).*/\1 \"matrixdb\",/" \
   -e "s/(\"username\":).*/\1 \"root\",/" \
   -e "s/(\"password\":).*/\1 \"$MYSQLD_ENV_MYSQL_ROOT_PASSWORD\",/" \
   server/datasources.json


Correct path referenced in npm script
Correct path referenced in npm script
