diff --git a/scripts/install b/scripts/install index b0d42d7..23bedcb 100644 --- a/scripts/install +++ b/scripts/install @@ -124,6 +124,7 @@ ynh_replace_string "__DB_USER__" "$db_user" "${final_path}/lstu.conf" ynh_replace_string "__DB_PWD__" "$db_pwd" "${final_path}/lstu.conf" secret=$(ynh_string_random 24) +ynh_app_setting_set $app secret $secret ynh_replace_string "__SECRET__" "$secret" "${final_path}/lstu.conf" ynh_store_file_checksum "${final_path}/lstu.conf" diff --git a/scripts/upgrade b/scripts/upgrade index 8c86f0a..36ec1ea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,7 +98,6 @@ ynh_replace_string "__DB_NAME__" "$db_name" "${final_path}/lstu.conf" ynh_replace_string "__DB_USER__" "$db_user" "${final_path}/lstu.conf" ynh_replace_string "__DB_PWD__" "$db_pwd" "${final_path}/lstu.conf" -secret=$(ynh_string_random 24) ynh_replace_string "__SECRET__" "$secret" "${final_path}/lstu.conf" ynh_store_file_checksum "${final_path}/lstu.conf"