diff --git a/scripts/_common.sh b/scripts/_common.sh index b493918..454c6ec 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= java_version=17 -mongo_version=4.4 +mongo_version=6.0 # Java dependencies used by the app will be installed through the Java helper pkg_dependencies="" diff --git a/scripts/install b/scripts/install index ac80166..e94a4a1 100755 --- a/scripts/install +++ b/scripts/install @@ -71,7 +71,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=1 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/restore b/scripts/restore index 9813191..340e6b6 100755 --- a/scripts/restore +++ b/scripts/restore @@ -32,7 +32,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) db_user=$(ynh_app_setting_get --app=$app --key=db_user) html_path=$(ynh_app_setting_get --app=$app --key=html_path) diff --git a/scripts/upgrade b/scripts/upgrade index 757562e..dcc12f7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,7 +20,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) port_ide=$(ynh_app_setting_get --app=$app --key=port_ide) port_preview=$(ynh_app_setting_get --app=$app --key=port_preview) port_project=$(ynh_app_setting_get --app=$app --key=port_project) @@ -76,12 +75,6 @@ done # ENSURE DOWNWARD COMPATIBILITY #================================================= -# Check or set the value of is_public -if [ -e "$is_public" ]; then - is_public=true - ynh_app_setting_set --app=$app --key=is_public --value=$is_public -fi - # Create html_path if needed if [ -z "$html_path" ]; then ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 diff --git a/scripts/ynh_mongo_db__2 b/scripts/ynh_mongo_db__2 index df0e420..03a0c84 100644 --- a/scripts/ynh_mongo_db__2 +++ b/scripts/ynh_mongo_db__2 @@ -312,8 +312,8 @@ ynh_install_mongo() { ynh_handle_getopts_args "$@" mongo_version="${mongo_version:-$YNH_MONGO_VERSION}" - ynh_print_info --message="Installing MongoDB Community Edition..." - ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian buster/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" + ynh_print_info --message="Installing MongoDB Community Edition ..." + ynh_install_extra_app_dependencies --repo="deb http://repo.mongodb.org/apt/debian $(ynh_get_debian_release)/mongodb-org/$mongo_version main" --package="mongodb-org mongodb-org-server mongodb-org-tools mongodb-mongosh" --key="https://www.mongodb.org/static/pgp/server-$mongo_version.asc" mongodb_servicename=mongod # Make sure MongoDB is started and enabled