From c74cd0bce9c3f0248e163fd70ce1a69924e0e36e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 25 Mar 2019 12:13:24 +0100 Subject: [PATCH] Update restore --- scripts/restore | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index edae5e1..5d09d7f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -89,11 +89,15 @@ chown -R "$app":"$app" "$final_path" ynh_print_info "Adding Erlang repository..." if [ "$(lsb_release --codename --short)" == "jessie" ]; then - ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" --key=https://packages.erlang-solutions.com/debian/erlang_solutions.asc + 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 - ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" --key=https://packages.erlang-solutions.com/debian/erlang_solutions.asc + 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 +apt update #================================================= # REINSTALL DEPENDENCIES