diff --git a/scripts/install b/scripts/install index 01db154..8455cd4 100755 --- a/scripts/install +++ b/scripts/install @@ -51,7 +51,7 @@ ynh_app_setting_set $app port $port ynh_install_nodejs 4.8.4 # Install mongodb -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 +apt-key adv --fetch-keys https://www.mongodb.org/static/pgp/server-3.2.asc echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list ynh_install_app_dependencies "mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools" diff --git a/scripts/restore b/scripts/restore index 3ce5f5b..3198973 100644 --- a/scripts/restore +++ b/scripts/restore @@ -55,7 +55,7 @@ ynh_system_user_create $app "$final_path" ynh_install_nodejs 4.8.4 # Install mongodb -apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 +apt-key adv --fetch-keys https://www.mongodb.org/static/pgp/server-3.2.asc echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list ynh_install_app_dependencies "mongodb-org mongodb-org-server mongodb-org-shell mongodb-org-mongos mongodb-org-tools" diff --git a/scripts/upgrade b/scripts/upgrade index 1a3eb3e..7059792 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,7 +53,7 @@ if ynh_version_gt "0.54-2" "${version}" ; then fi if ynh_version_gt "0.54-3" "${version}" ; then apt-key del EA312927 - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 + apt-key adv --fetch-keys https://www.mongodb.org/static/pgp/server-3.2.asc fi #=================================================