mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Remove repository references
This commit is contained in:
parent
ef5c4f11be
commit
1ba6dd814d
3 changed files with 34 additions and 10 deletions
|
@ -106,6 +106,21 @@ port=$(ynh_find_port 8095)
|
||||||
#ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
#ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
||||||
ynh_app_setting_set $app port $port
|
ynh_app_setting_set $app port $port
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL ERLANG 1.21.2.6-1
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info "Installing erlang 1.21.2.6-1..."
|
||||||
|
|
||||||
|
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||||
|
#sudo apt install -y ../sources/esl-erlang_21.2.6-1~debian~jessie_amd64.deb
|
||||||
|
#sudo apt install -y ../sources/elixir_1.8.1-2~debian~jessie_amd64.deb
|
||||||
|
elif
|
||||||
|
[ "$(lsb_release --codename --short)" == "stretch" ]; then
|
||||||
|
#sudo apt install -y ../sources/esl-erlang_21.2.6-1~debian~stretch_amd64.deb
|
||||||
|
#sudo apt install -y ../sources/elixir_1.8.1-2~debian~stretch_amd64.deb
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -120,15 +135,15 @@ ynh_print_info "Installing dependencies ..."
|
||||||
|
|
||||||
# Add erlang for Debian Jessie
|
# Add erlang for Debian Jessie
|
||||||
|
|
||||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
#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
|
# echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
|
||||||
elif
|
#elif
|
||||||
[ "$(lsb_release --codename --short)" == "stretch" ]; then
|
# [ "$(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
|
# echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
|
||||||
fi
|
#fi
|
||||||
sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
#sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
||||||
sudo apt-key add erlang_solutions.asc
|
#sudo apt-key add erlang_solutions.asc
|
||||||
sudo rm erlang_solutions.asc
|
#sudo rm erlang_solutions.asc
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
ynh_install_app_dependencies git build-essential openssl ssh sudo postgresql postgresql-contrib elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools
|
ynh_install_app_dependencies git build-essential openssl ssh sudo postgresql postgresql-contrib elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools
|
||||||
|
|
|
@ -68,7 +68,13 @@ ynh_print_info "Removing dependencies"
|
||||||
|
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
ynh_secure_remove "/etc/apt/sources.list.d/erlang-solutions.list"
|
|
||||||
|
#=================================================
|
||||||
|
# REMOVE ERLANG 1.21.2.6-1
|
||||||
|
#=================================================
|
||||||
|
ynh_print_info "Removing erlang 1.21.2.6-1..."
|
||||||
|
|
||||||
|
#sudo apt remove -y esl-erlang
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE APP MAIN DIR
|
# REMOVE APP MAIN DIR
|
||||||
|
|
|
@ -70,6 +70,9 @@ if [ -z $final_path ]; then
|
||||||
ynh_app_setting_set $app final_path $final_path
|
ynh_app_setting_set $app final_path $final_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove repository
|
||||||
|
ynh_secure_remove "/etc/apt/sources.list.d/erlang-solutions.list"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue