From 69b0ad9bb0e73cc671edeabb56a288c0037655d5 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 18 Mar 2019 00:07:48 +0100 Subject: [PATCH] Back to erlang repo --- scripts/install | 11 ++++++----- scripts/remove | 4 ++-- scripts/restore | 11 ++++++----- scripts/upgrade | 11 ++++++----- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/scripts/install b/scripts/install index 425ee92..bc35183 100755 --- a/scripts/install +++ b/scripts/install @@ -107,18 +107,19 @@ port=$(ynh_find_port 8095) ynh_app_setting_set $app port $port #================================================= -# INSTALL ERLANG and ELIXIR +# INSTALL ERLANG AND ELIXIR #================================================= ynh_print_info "Installing erlang and elixir ..." if [ "$(lsb_release --codename --short)" == "jessie" ]; then - sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~jessie_amd64.deb - sudo apt install -y ../conf/elixir_1.8.1-2~debian~jessie_amd64.deb + echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list elif [ "$(lsb_release --codename --short)" == "stretch" ]; then - sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~stretch_amd64.deb - sudo apt install -y ../conf/elixir_1.8.1-2~debian~stretch_amd64.deb + echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list fi +sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc +sudo apt-key add erlang_solutions.asc +sudo rm erlang_solutions.asc #================================================= # INSTALL DEPENDENCIES diff --git a/scripts/remove b/scripts/remove index 50479bb..ffa9bc3 100755 --- a/scripts/remove +++ b/scripts/remove @@ -74,8 +74,8 @@ ynh_remove_app_dependencies #================================================= ynh_print_info "Removing erlang and elixir..." -sudo apt remove -y esl-erlang -sudo apt remove -y elixir +ynh_secure_remove "/etc/apt/sources.list.d/erlang-solutions.list" +apt-key del A14F4FCA #================================================= # REMOVE APP MAIN DIR diff --git a/scripts/restore b/scripts/restore index 8116c0c..1002244 100755 --- a/scripts/restore +++ b/scripts/restore @@ -90,18 +90,19 @@ chown -R "$app":"$app" "$final_path" #================================================= # SPECIFIC RESTORATION #================================================= -# INSTALL ERLANG and ELIXIR +# INSTALL ERLANG AND ELIXIR #================================================= ynh_print_info "Installing erlang and elixir ..." if [ "$(lsb_release --codename --short)" == "jessie" ]; then - sudo apt install -y ../settings/conf/esl-erlang_21.2.6-1~debian~jessie_amd64.deb - sudo apt install -y ../settings/conf/elixir_1.8.1-2~debian~jessie_amd64.deb + echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list elif [ "$(lsb_release --codename --short)" == "stretch" ]; then - sudo apt install -y ../settings/conf/esl-erlang_21.2.6-1~debian~stretch_amd64.deb - sudo apt install -y ../settings/conf/elixir_1.8.1-2~debian~stretch_amd64.deb + echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list fi +sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc +sudo apt-key add erlang_solutions.asc +sudo rm erlang_solutions.asc #================================================= # REINSTALL DEPENDENCIES diff --git a/scripts/upgrade b/scripts/upgrade index 62f883e..840844c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,18 +140,19 @@ then fi #================================================= -# INSTALL ERLANG and ELIXIR +# INSTALL ERLANG AND ELIXIR #================================================= ynh_print_info "Installing erlang and elixir ..." if [ "$(lsb_release --codename --short)" == "jessie" ]; then - sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~jessie_amd64.deb - sudo apt install -y ../conf/elixir_1.8.1-2~debian~jessie_amd64.deb + echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list elif [ "$(lsb_release --codename --short)" == "stretch" ]; then - sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~stretch_amd64.deb - sudo apt install -y ../conf/elixir_1.8.1-2~debian~stretch_amd64.deb + echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list fi +sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc +sudo apt-key add erlang_solutions.asc +sudo rm erlang_solutions.asc #================================================= # UPGRADE DEPENDENCIES