From 7001225f8423dcb388564fd8beb234c9f13b7d8e Mon Sep 17 00:00:00 2001 From: ljf Date: Sat, 23 Dec 2017 00:20:39 +0100 Subject: [PATCH] [fix] Can't download signature --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 7fbb72c..9757760 100755 --- a/scripts/install +++ b/scripts/install @@ -51,7 +51,7 @@ ynh_app_setting_set $app port $port ynh_install_nodejs 4.8.7 # Install mongodb -apt-key adv --fetch-keys https://www.mongodb.org/static/pgp/server-3.2.asc +wget https://www.mongodb.org/static/pgp/server-3.2.asc -o - | apt-key add - 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 45c74c8..3ece36b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -55,7 +55,7 @@ ynh_system_user_create $app "$final_path" ynh_install_nodejs 4.8.7 # Install mongodb -apt-key adv --fetch-keys https://www.mongodb.org/static/pgp/server-3.2.asc +wget https://www.mongodb.org/static/pgp/server-3.2.asc -o - | apt-key add - 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 116e7bb..9427a4a 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 --fetch-keys https://www.mongodb.org/static/pgp/server-3.2.asc + wget https://www.mongodb.org/static/pgp/server-3.2.asc -o - | apt-key add - fi if ynh_version_gt "0.63-1" "${version}" ; then ynh_install_nodejs 4.8.7