1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

fix yn,h_install_extra_repo

This commit is contained in:
yalh76 2019-03-25 17:19:50 +01:00
parent bfe15c02af
commit 746028ad4f
2 changed files with 3 additions and 4 deletions

View file

@ -92,9 +92,9 @@ ynh_app_setting_set $app port $port
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"
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib" --key="https://packages.erlang-solutions.com/debian/dists/jessie/Release.gpg"
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"
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib" --key="https://packages.erlang-solutions.com/debian/dists/stretch/Release.gpg"
fi
#=================================================

View file

@ -75,8 +75,7 @@ ynh_remove_app_dependencies
#=================================================
ynh_print_info "Removing erlang repository..."
ynh_secure_remove "/etc/apt/sources.list.d/erlang-solutions.list"
apt-key del A14F4FCA
ynh_remove_extra_repo
#=================================================
# REMOVE APP MAIN DIR