From fe21bf96c8d637432efa07c93f9729bd5ac4092d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 12 Feb 2019 15:17:36 +0100 Subject: [PATCH 1/3] ynh_string_random to 64 --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 1110f80..73c31c3 100755 --- a/scripts/install +++ b/scripts/install @@ -34,7 +34,7 @@ password=$YNH_APP_ARG_PASSWORD instance_name=$YNH_APP_ARG_NAME registration=$YNH_APP_ARG_REGISTRATION admin_email=$(ynh_user_get_info $admin 'mail') -secret_key=$(ynh_string_random 32) +secret_key=$(ynh_string_random 64) ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID From d9f40e7615d8bc8b8613f86a9294c016cd26eda2 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 12 Feb 2019 18:25:23 +0100 Subject: [PATCH 2/3] fix secret_key --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 73c31c3..71b7e23 100755 --- a/scripts/install +++ b/scripts/install @@ -34,7 +34,7 @@ password=$YNH_APP_ARG_PASSWORD instance_name=$YNH_APP_ARG_NAME registration=$YNH_APP_ARG_REGISTRATION admin_email=$(ynh_user_get_info $admin 'mail') -secret_key=$(ynh_string_random 64) +secret_key=$(ynh_string_random 256) ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID From 2357d7ad5704a1957f5e7b12b84588c05c2c406b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 12 Feb 2019 18:26:58 +0100 Subject: [PATCH 3/3] Fix secret_key --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 71b7e23..8f5b51e 100755 --- a/scripts/install +++ b/scripts/install @@ -34,7 +34,7 @@ password=$YNH_APP_ARG_PASSWORD instance_name=$YNH_APP_ARG_NAME registration=$YNH_APP_ARG_REGISTRATION admin_email=$(ynh_user_get_info $admin 'mail') -secret_key=$(ynh_string_random 256) +secret_key=$(openssl rand -base64 32) ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID