1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

Remove backports and yarn repo files

This commit is contained in:
nemsia 2018-06-14 15:19:48 +02:00
parent d740e4e0f3
commit d592fe5cac
7 changed files with 14 additions and 9 deletions

View file

@ -1 +0,0 @@
deb http://httpredir.debian.org/debian jessie-backports main

View file

@ -1 +0,0 @@
deb https://dl.yarnpkg.com/debian/ stable main

View file

@ -72,7 +72,5 @@ ynh_backup "/etc/systemd/system/$app-streaming.service"
#=================================================
# BACKUP THE sources.list FILES
#=================================================
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
ynh_backup "/etc/apt/sources.list.d/backports.list" "apt_backports.list"
fi
ynh_backup "/etc/apt/sources.list.d/yarn.list" "apt_yarn.list"

View file

@ -81,10 +81,10 @@ fi
# Install source.list debian package backports & yarn
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
sudo cp ../conf/backports.list /etc/apt/sources.list.d/
echo "deb http://httpredir.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
fi
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
cp ../conf/yarn.list /etc/apt/sources.list.d/
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
ynh_package_update
# Creates the destination directory and stores its location.

View file

@ -103,6 +103,7 @@ ynh_secure_remove /etc/cron.d/$app
#=================================================
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
ynh_secure_remove /etc/apt/sources.list.d/backports.list
ynh_secure_remove /etc/apt/sources.list.d/jessie-backports.list
fi
ynh_secure_remove /etc/apt/sources.list.d/yarn.list

View file

@ -89,10 +89,10 @@ fi
# Install source.list debian package backports & yarn
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
cp ./apt_backports.list /etc/apt/sources.list.d/backports.list
echo "deb http://httpredir.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
fi
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
cp ./apt_yarn.list /etc/apt/sources.list.d/yarn.list
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
ynh_package_update
# Install de Node.js

View file

@ -47,6 +47,14 @@ if [[ "$admin" = "" || "$language" = "" ]]; then
ynh_die
fi
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
echo "deb http://httpredir.debian.org/debian jessie-backports main" | tee /etc/apt/sources.list.d/jessie-backports.list
ynh_secure_remove /etc/apt/sources.list.d/backports.list
fi
# Add yarn repo
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================