1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2024-01-10 15:09:53 +01:00
parent cb57f51e10
commit 5c1f057637

View file

@ -72,18 +72,18 @@ if [ -n "$mysql_db_pwd" ]
then
ynh_script_progression --message="Migrating to PostgreSQL database..." --weight=3
ynh_backup_if_checksum_is_different --file="$install_dir/config/config.php"
#ynh_backup_if_checksum_is_different --file="$install_dir/config/config.php"
ynh_psql_test_if_first_run
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$(ynh_string_random)
ynh_app_setting_set --app=$app --key=psqlpwd --value=$db_pwd
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name #--db_pwd=$(ynh_string_random)
#ynh_app_setting_set --app=$app --key=psqlpwd --value=$db_pwd
exec_occ db:convert-type --all-apps --clear-schema pgsql $db_name 127.0.0.1 $db_name --password=$db_pwd -n
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name
ynh_app_setting_delete --app=$app --key=mysqlpwd
ynh_store_file_checksum --file="${install_dir}/config/config.php"
#ynh_store_file_checksum --file="${install_dir}/config/config.php"
fi
#=================================================