From 18698ef5d45c03473b5e76f408a8c3ab406b6191 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 20 Dec 2019 08:55:31 +0100 Subject: [PATCH] Fix Pandora password hash generation --- lxc-apps/pandora/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc-apps/pandora/install.sh b/lxc-apps/pandora/install.sh index 680a0e1..3636e59 100755 --- a/lxc-apps/pandora/install.sh +++ b/lxc-apps/pandora/install.sh @@ -45,7 +45,7 @@ lxc-execute pandora -- /srv/pandora/pandora/manage.py sync_documentsort export PANDORA_ADMIN_USER=admin export PANDORA_ADMIN_EMAIL=admin@example.com export PANDORA_ADMIN_PWD=$(head -c 12 /dev/urandom | base64 | tr -d '+/=') -export PANDORA_ADMIN_HASH=$(lxc-execute pandora -- sh -c "DJANGO_SETTINGS_MODULE=srv.pandora.pandora.settings python3 -c \"from django.contrib.auth.hashers import make_password; print(make_password('${PANDORA_ADMIN_PWD}'))\"") +export PANDORA_ADMIN_HASH=$(lxc-execute pandora -- sh -c "cd /srv/pandora && DJANGO_SETTINGS_MODULE=pandora.settings python3 -c \"from django.contrib.auth.hashers import make_password; print(make_password('${PANDORA_ADMIN_PWD}'))\"") envsubst