mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Back to erlang repo
This commit is contained in:
parent
241f95935c
commit
69b0ad9bb0
4 changed files with 20 additions and 17 deletions
|
@ -107,18 +107,19 @@ port=$(ynh_find_port 8095)
|
|||
ynh_app_setting_set $app port $port
|
||||
|
||||
#=================================================
|
||||
# INSTALL ERLANG and ELIXIR
|
||||
# INSTALL ERLANG AND ELIXIR
|
||||
#=================================================
|
||||
ynh_print_info "Installing erlang and elixir ..."
|
||||
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~jessie_amd64.deb
|
||||
sudo apt install -y ../conf/elixir_1.8.1-2~debian~jessie_amd64.deb
|
||||
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
|
||||
sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~stretch_amd64.deb
|
||||
sudo apt install -y ../conf/elixir_1.8.1-2~debian~stretch_amd64.deb
|
||||
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
|
||||
fi
|
||||
sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
||||
sudo apt-key add erlang_solutions.asc
|
||||
sudo rm erlang_solutions.asc
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
|
|
|
@ -74,8 +74,8 @@ ynh_remove_app_dependencies
|
|||
#=================================================
|
||||
ynh_print_info "Removing erlang and elixir..."
|
||||
|
||||
sudo apt remove -y esl-erlang
|
||||
sudo apt remove -y elixir
|
||||
ynh_secure_remove "/etc/apt/sources.list.d/erlang-solutions.list"
|
||||
apt-key del A14F4FCA
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
|
|
|
@ -90,18 +90,19 @@ chown -R "$app":"$app" "$final_path"
|
|||
#=================================================
|
||||
# SPECIFIC RESTORATION
|
||||
#=================================================
|
||||
# INSTALL ERLANG and ELIXIR
|
||||
# INSTALL ERLANG AND ELIXIR
|
||||
#=================================================
|
||||
ynh_print_info "Installing erlang and elixir ..."
|
||||
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
sudo apt install -y ../settings/conf/esl-erlang_21.2.6-1~debian~jessie_amd64.deb
|
||||
sudo apt install -y ../settings/conf/elixir_1.8.1-2~debian~jessie_amd64.deb
|
||||
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
|
||||
sudo apt install -y ../settings/conf/esl-erlang_21.2.6-1~debian~stretch_amd64.deb
|
||||
sudo apt install -y ../settings/conf/elixir_1.8.1-2~debian~stretch_amd64.deb
|
||||
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
|
||||
fi
|
||||
sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
||||
sudo apt-key add erlang_solutions.asc
|
||||
sudo rm erlang_solutions.asc
|
||||
|
||||
#=================================================
|
||||
# REINSTALL DEPENDENCIES
|
||||
|
|
|
@ -140,18 +140,19 @@ then
|
|||
fi
|
||||
|
||||
#=================================================
|
||||
# INSTALL ERLANG and ELIXIR
|
||||
# INSTALL ERLANG AND ELIXIR
|
||||
#=================================================
|
||||
ynh_print_info "Installing erlang and elixir ..."
|
||||
|
||||
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||
sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~jessie_amd64.deb
|
||||
sudo apt install -y ../conf/elixir_1.8.1-2~debian~jessie_amd64.deb
|
||||
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
|
||||
sudo apt install -y ../conf/esl-erlang_21.2.6-1~debian~stretch_amd64.deb
|
||||
sudo apt install -y ../conf/elixir_1.8.1-2~debian~stretch_amd64.deb
|
||||
echo "deb http://packages.erlang-solutions.com/debian stretch contrib" | tee /etc/apt/sources.list.d/erlang-solutions.list
|
||||
fi
|
||||
sudo wget https://packages.erlang-solutions.com/debian/erlang_solutions.asc
|
||||
sudo apt-key add erlang_solutions.asc
|
||||
sudo rm erlang_solutions.asc
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
|
|
Loading…
Add table
Reference in a new issue