From 9c9d2fcd4799d3b60efeac72b25da66679220487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= Date: Thu, 19 Dec 2024 15:18:20 +0100 Subject: [PATCH] [plane] Adjust ADMINPASS detection to work with recent provisioner changes --- lib/plane.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plane.sh b/lib/plane.sh index 32a85f8..08fc257 100644 --- a/lib/plane.sh +++ b/lib/plane.sh @@ -510,7 +510,7 @@ EOF PROFILE_UUID=$(random xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) SIGNUP_UUID=$(random xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) TOKEN=$(random xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) - ADMINPASS=$(grep ADMINPASS= /var/lib/cloud/instances/[0-9]*/cloud-config.txt |cut -d= -f2- |tr -d \") + ADMINPASS=$(grep ADMINPASS= /var/lib/cloud/instances/[0-9]*/cloud-config.txt |cut -d= -f2- |cut -d'"' -f2 |tr -d '\\') ENCODED_PASSWORD=$(python3 -c "from passlib.hash import django_pbkdf2_sha256; print(django_pbkdf2_sha256.hash('$ADMINPASS'))") # FIXME don't hardcode 0.24.0 cat >/federated/apps/postgresql/data/var/lib/postgresql/data/plane-initial-user.sql <