1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pytition_ynh.git synced 2024-09-03 20:16:08 +02:00

Fix change_url: bad db_pwd retrieval

This commit is contained in:
Félix Piédallu 2022-04-14 11:59:42 +02:00 committed by Salamandar
parent a02dfb8c26
commit cd647b934c
2 changed files with 3 additions and 2 deletions

View file

@ -21,7 +21,7 @@
;upgrade=1 from_commit=CommitHash
backup_restore=1
multi_instance=1
;change_url=1
change_url=1
;;; Options
Email=
Notification=none

View file

@ -31,7 +31,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# Add settings here as needed by your application
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd)
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
secret_key=$(generate_secret_key)
#=================================================
@ -103,6 +103,7 @@ then
mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf
# Store file checksum for the new config file location
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
domain="$new_domain"
fi
#=================================================