diff --git a/scripts/install b/scripts/install index cab5695..1fd1162 100755 --- a/scripts/install +++ b/scripts/install @@ -91,13 +91,10 @@ ynh_app_setting_set $app port $port #================================================= ynh_print_info "Adding Erlang repository..." -wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc -apt-key add erlang_solutions.asc -rm erlang_solutions.asc if [ "$(lsb_release --codename --short)" == "jessie" ]; then - ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" + ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" --key="https://packages.erlang-solutions.com/debian/erlang_solutions.asc" elif [ "$(lsb_release --codename --short)" == "stretch" ]; then - ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" + ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" --key="https://packages.erlang-solutions.com/debian/erlang_solutions.asc" fi ynh_package_update diff --git a/scripts/restore b/scripts/restore index 7779022..7c8e87d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -88,13 +88,10 @@ chown -R "$app":"$app" "$final_path" #================================================= ynh_print_info "Adding Erlang repository..." -wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc -apt-key add erlang_solutions.asc -rm erlang_solutions.asc if [ "$(lsb_release --codename --short)" == "jessie" ]; then - ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" + ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" --key="https://packages.erlang-solutions.com/debian/erlang_solutions.asc" elif [ "$(lsb_release --codename --short)" == "stretch" ]; then - ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" + ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" --key="https://packages.erlang-solutions.com/debian/erlang_solutions.asc" fi ynh_package_update