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

remove ynh_add_secure_repos__2

This commit is contained in:
yalh76 2019-03-25 17:36:33 +01:00
parent 5ca41c27f1
commit 4acf009b40
3 changed files with 6 additions and 10 deletions

View file

@ -8,7 +8,6 @@
source _common.sh
source ynh_systemd_action
source ynh_add_secure_repos__2
source /usr/share/yunohost/helpers
#=================================================
@ -94,11 +93,10 @@ 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
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib"
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
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib"
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/$app.list
fi
ynh_package_update

View file

@ -8,7 +8,6 @@
source _common.sh
source ynh_systemd_action
source ynh_add_secure_repos__2
source /usr/share/yunohost/helpers
#=================================================
@ -75,7 +74,7 @@ ynh_remove_app_dependencies
#=================================================
ynh_print_info "Removing erlang repository..."
ynh_remove_extra_repo
ynh_secure_remove "/etc/apt/sources.list.d/${app}.list"
apt-key del A14F4FCA
#=================================================

View file

@ -8,7 +8,6 @@
source ../settings/scripts/_common.sh
source ../settings/scripts/ynh_systemd_action
source ../settings/scripts/ynh_add_secure_repos__2
source /usr/share/yunohost/helpers
#=================================================
@ -91,12 +90,12 @@ 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
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib"
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
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib"
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/$app.list
fi
ynh_package_update
#=================================================
# REINSTALL DEPENDENCIES