From 7cc5132693f4eeaa3cfc4e0c32500f765c3029ee Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 16 Jun 2022 14:31:56 +0200 Subject: [PATCH] Fix hashed password --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index e2ba95a..0c0c71c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,7 +114,7 @@ if [ -z "$secret_key" ]; then fi # If hashed_password doesn't exist, create it -if [ -z "$hashed_password" ]; then +if [ -z "$hashed_password" ] && [ test -f "${final_path}/venv/bin/activate" ]; then password=$(ynh_string_random --length=16) #run source in a 'sub shell' (