mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Remove backports and yarn repo files
This commit is contained in:
parent
d740e4e0f3
commit
d592fe5cac
7 changed files with 14 additions and 9 deletions
|
@ -1 +0,0 @@
|
|||
deb http://httpredir.debian.org/debian jessie-backports main
|
|
@ -1 +0,0 @@
|
|||
deb https://dl.yarnpkg.com/debian/ stable main
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue