1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00
This commit is contained in:
yalh76 2019-03-25 18:15:58 +01:00
parent 4f1068bba8
commit 6ede12c6ef
2 changed files with 4 additions and 10 deletions

View file

@ -91,13 +91,10 @@ ynh_app_setting_set $app port $port
#================================================= #=================================================
ynh_print_info "Adding Erlang repository..." 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 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 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 fi
ynh_package_update ynh_package_update

View file

@ -88,13 +88,10 @@ chown -R "$app":"$app" "$final_path"
#================================================= #=================================================
ynh_print_info "Adding Erlang repository..." 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 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 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 fi
ynh_package_update ynh_package_update