From bfe15c02afb40c9c1f880b2222744af9e2ef8c86 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 25 Mar 2019 17:16:39 +0100 Subject: [PATCH] Update install --- scripts/install | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index b591fbd..5d1b43b 100755 --- a/scripts/install +++ b/scripts/install @@ -92,14 +92,10 @@ ynh_app_setting_set $app port $port ynh_print_info "Adding Erlang repository..." if [ "$(lsb_release --codename --short)" == "jessie" ]; then - echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list + 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 - echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list + 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 -sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc -sudo apt-key add erlang_solutions.asc -sudo rm erlang_solutions.asc -apt update #================================================= # INSTALL DEPENDENCIES