From 0a59d4b6723b4ffe866b5be673164696267446e9 Mon Sep 17 00:00:00 2001 From: einhorn_b Date: Wed, 17 Jan 2024 15:29:40 +0100 Subject: [PATCH] update readmeg --- deployment/hetzner_cloud/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/deployment/hetzner_cloud/README.md b/deployment/hetzner_cloud/README.md index d7f7cf13a..d03ff0b46 100644 --- a/deployment/hetzner_cloud/README.md +++ b/deployment/hetzner_cloud/README.md @@ -107,9 +107,18 @@ will remove it and ln ../bare_metal/nginx/conf.d ```bash cd ~/gradido/deployment/hetzner_cloud sudo ./install.sh +``` ### Make yourself admin +- Create an account on your new gradido instance +- Click the link in the activation email +- go back to your ssh session and copy this command + +```bash +sudo mysql -D gradido_community -e "insert into user_roles(user_id, role) values((select id from users order by id desc limit 1), 'ADMIN');" +``` + +- it will make last registered user admin +- login with you newly created user +- if you has a link to `Admin Area` it worked and you are admin -```mysql -insert into user_roles(user_id, role) values(276, 'ADMIN'); -``` \ No newline at end of file