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

Bask to erlang-solutions.list

This commit is contained in:
yalh76 2019-03-26 20:48:03 +01:00
parent 6767227453
commit 5d82e9ee77
4 changed files with 16 additions and 16 deletions

View file

@ -90,14 +90,14 @@ ynh_app_setting_set $app port $port
#================================================= #=================================================
ynh_print_info "Adding Erlang repository..." 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
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
fi
wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
apt-key add erlang_solutions.asc apt-key add erlang_solutions.asc
rm erlang_solutions.asc rm erlang_solutions.asc
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/$app.list
elif [ "$(lsb_release --codename --short)" == "stretch" ]; then
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/$app.list
fi
ynh_package_update ynh_package_update
#================================================= #=================================================

View file

@ -74,7 +74,7 @@ ynh_remove_app_dependencies
#================================================= #=================================================
ynh_print_info "Removing erlang repository..." ynh_print_info "Removing erlang repository..."
ynh_secure_remove "/etc/apt/sources.list.d/$app.list" ynh_secure_remove "/etc/apt/sources.list.d/erlang-solutions.list"
apt-key del A14F4FCA apt-key del A14F4FCA
#================================================= #=================================================

View file

@ -87,14 +87,14 @@ chown -R "$app":"$app" "$final_path"
#================================================= #=================================================
ynh_print_info "Adding Erlang repository..." 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
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
fi
wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
apt-key add erlang_solutions.asc apt-key add erlang_solutions.asc
rm erlang_solutions.asc rm erlang_solutions.asc
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/$app.list
elif [ "$(lsb_release --codename --short)" == "stretch" ]; then
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/$app.list
fi
ynh_package_update ynh_package_update
#================================================= #=================================================

View file

@ -147,14 +147,14 @@ fi
#================================================= #=================================================
ynh_print_info "Adding Erlang repository..." 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
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
fi
wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
apt-key add erlang_solutions.asc apt-key add erlang_solutions.asc
rm erlang_solutions.asc rm erlang_solutions.asc
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/$app.list
elif [ "$(lsb_release --codename --short)" == "stretch" ]; then
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/$app.list
fi
ynh_package_update ynh_package_update
#================================================= #=================================================
# UPGRADE DEPENDENCIES # UPGRADE DEPENDENCIES