1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00

Fix #3 workaround for ynh_psql_setup_db() and improved install email

This commit is contained in:
oleole39 2023-01-23 05:30:17 +01:00
parent 0c715d62f6
commit dd3af1681f
2 changed files with 4 additions and 4 deletions

View file

@ -158,8 +158,8 @@ message="Noalyss installation is *almost* complete :)
To conclude, please open the admin configuration page of your ${app^} domain: https://$domain$path_url/install.php
You will have to:
1. Choose the locale and click on \"Continuer\" (FR) / \"Continue\" (EN).
2. Scroll the page down and click on the button \"Commencer la mise à jour ou l\'installation ?\" (FR) / \"Start the update or the installation ?\" (EN)
1. Select the language you want and click on \"Continuer\" (FR) / \"Continue\" (EN).
2. Scroll the page down and click on the button \"Commencer la mise à jour ou l'installation ?\" (FR) / \"Start the update or the installation ?\" (EN)
3. Scroll to the bottom of the page and click on the button \"Essai effacement install.php et se connecter à NOALYSS\" (FR) / \"Try erasing install.php and log into NOALYSS\" (EN)
Once done, you will be able to log into Noalyss with your credentials:
@ -174,7 +174,7 @@ Link to Noalyss' user documentation: https://www.noalyss.eu/?page_id=1031
Please find also for reference the credential for the dedicated PostgreSQL database user:
-------------------------------------------
Database's dedicated user: $app
Database's password: $db_pwd
Database's dedicated user's password: $db_pwd
-------------------------------------------
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/noalysse_ynh/issues

View file

@ -91,7 +91,7 @@ ynh_psql_restore_all_app_dbs_dumps --db_user=$db_user --db_user_pwd=db_user_pwd
if [ -n "$db_user" ]; then
sql="ALTER USER $db_user CREATEDB"
ynh_psql_execute_as_root --sql="$sql"
sql= "ALTER USER noalyss WITH PASSWORD ${db_user_pwd}" #Workaround to restore the backed up password, since as of 23 January 2023, there seems to be a bug in ynh_psql_setup_db() helper (YNH Core) forcing password reset.
sql= "ALTER USER noalyss WITH PASSWORD '${db_user_pwd}'" #Workaround to restore the backed up password, since as of 23 January 2023, there seems to be a bug in ynh_psql_setup_db() helper (YNH Core) forcing password reset.
ynh_psql_execute_as_root --sql="$sql"
fi