From c6968868048925880b82d9a9f6169f968da65d08 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Sun, 2 Sep 2018 14:18:13 +0200 Subject: [PATCH] ynh_string_random can't go further 24... --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 91d9338..6d99a0f 100755 --- a/scripts/install +++ b/scripts/install @@ -207,7 +207,7 @@ virtualenv "${final_path}/venv" #================================================= db_pwd=$(ynh_app_setting_get "$app" psqlpwd) admin_mail=$(ynh_user_get_info "$admin" mail) -key=$(ynh_string_random 50) +key=$(ynh_string_random 24)$(ynh_string_random 24)$(ynh_string_random 2) memc_port=$(ynh_find_port 8080) settings="$final_path/venv/lib/python2.7/site-packages/weblate/settings.py" cp "../conf/settings_history/settings.$current_version.py" "$settings" diff --git a/scripts/upgrade b/scripts/upgrade index 0643508..35cda87 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,7 +25,7 @@ admin_mail=$(ynh_user_get_info "$admin" mail) memc_port=$(ynh_app_setting_get "$app" memc_port) github_account=$(ynh_app_setting_get "$app" github_account) migration311=$(ynh_app_setting_get "$app" migration311) -key=$(ynh_string_random 50) +key=$(ynh_string_random 24)$(ynh_string_random 24)$(ynh_string_random 2) #================================================= # Get previous version number