1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mailman3_ynh.git synced 2024-09-03 19:36:17 +02:00

Save db_user_* in settings

This commit is contained in:
Salamandar 2024-05-17 13:29:05 +02:00
parent 76b47f404d
commit f6f01a2e0b

View file

@ -19,6 +19,7 @@ db_name_app=$(ynh_sanitize_dbid --db_name="${app}_app")
db_user_app=$db_name_app
db_pwd_app=$(ynh_string_random --length=30)
ynh_app_setting_set --app="$app" --key="db_name_app" --value="$db_name_app"
ynh_app_setting_set --app="$app" --key="db_user_app" --value="$db_user_app"
ynh_app_setting_set --app="$app" --key="db_pwd_app" --value="$db_pwd_app"
# mailman3-web database
@ -26,6 +27,7 @@ db_name_web=$(ynh_sanitize_dbid --db_name="${app}_web")
db_user_web=$db_name_web
db_pwd_web=$(ynh_string_random --length=30)
ynh_app_setting_set --app="$app" --key="db_name_web" --value="$db_name_web"
ynh_app_setting_set --app="$app" --key="db_user_web" --value="$db_user_web"
ynh_app_setting_set --app="$app" --key="db_pwd_web" --value="$db_pwd_web"
# mailman3 core configuration