From 52c29939ee40bf7c36b9a7e2dafd2e1a44c47336 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Thu, 9 Dec 2021 16:16:23 +0100 Subject: [PATCH] docs: fix up post-install docs --- README.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 8793d8b..b18cd85 100644 --- a/README.md +++ b/README.md @@ -29,26 +29,13 @@ ## Post-install ``` -./first_deploy.sh +passwd=`abra app run pen.lumbung.space db cat /run/secrets/db_password` +abra app run pen.lumbung.space db mysql -u writeas -p$passwd writefreely +ALTER TABLE `oauth_users` MODIFY `access_token` varchar(2048); ``` ## Keycloak setup -Until [this](https://github.com/writefreely/writefreely/issues/516) is fixed, you have to migrate the db yourself. - -Get into a db shell with the following: - -``` -db_passwd=$(abra app run db cat /run/secrets/db_password) -abra app run db mysql -u writeas -p"$db_passwd" writefreely -``` - -Run the migration: - -``` -ALTER TABLE 'oauth_users' MODIFY 'access_token' varchar(2048); -``` - For the **OAUTH_HOST** config, it uses this format: `https://keycloak.domain.here/auth/realms//protocol/openid-connect`. ## Acknowledgements