mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
fix extra repo
This commit is contained in:
parent
746028ad4f
commit
758f8fc118
3 changed files with 13 additions and 8 deletions
|
@ -91,10 +91,14 @@ ynh_app_setting_set $app port $port
|
|||
#=================================================
|
||||
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" --key="https://packages.erlang-solutions.com/debian/dists/jessie/Release.gpg"
|
||||
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib"
|
||||
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/dists/stretch/Release.gpg"
|
||||
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -76,6 +76,7 @@ ynh_remove_app_dependencies
|
|||
ynh_print_info "Removing erlang repository..."
|
||||
|
||||
ynh_remove_extra_repo
|
||||
apt-key del A14F4FCA
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
|
|
|
@ -88,15 +88,15 @@ chown -R "$app":"$app" "$final_path"
|
|||
#=================================================
|
||||
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
|
||||
echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
|
||||
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian jessie contrib"
|
||||
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
|
||||
ynh_install_extra_repo --repo="deb http://packages.erlang-solutions.com/debian stretch contrib"
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue