2022-11-21 08:17:19 +00:00
|
|
|
#!/bin/bash
|
2022-07-27 13:48:00 +00:00
|
|
|
|
|
|
|
MYSQL_HOST=${MYSQL_HOST:-"localhost"}
|
|
|
|
MYSQL_DATABASE=${MYSQL_DATABASE:-"onlyoffice"}
|
|
|
|
MYSQL_USER=${MYSQL_USER:-"onlyoffice_user"}
|
|
|
|
MYSQL_PASSWORD=${MYSQL_PASSWORD:-"onlyoffice_pass"}
|
|
|
|
|
2022-12-07 14:36:38 +00:00
|
|
|
sed -i "s!\"ConnectionString\".*!\"ConnectionString\": \"Server=${MYSQL_HOST};Database=${MYSQL_DATABASE};User ID=${MYSQL_USER};Password=${MYSQL_PASSWORD}\",!g" ./appsettings.runner.json
|
2022-07-27 13:48:00 +00:00
|
|
|
|
2022-11-22 08:49:58 +00:00
|
|
|
dotnet ASC.Migration.Runner.dll
|