mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Fix Upgrade
This commit is contained in:
parent
d592fe5cac
commit
c9429cbf23
1 changed files with 9 additions and 11 deletions
|
@ -47,14 +47,6 @@ if [[ "$admin" = "" || "$language" = "" ]]; then
|
||||||
ynh_die
|
ynh_die
|
||||||
fi
|
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
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -69,11 +61,17 @@ ynh_clean_setup () {
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK THE PATH
|
# Remove repo Files
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Normalize the URL path syntax
|
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
|
||||||
#path_url=$(ynh_normalize_url_path $path_url)
|
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
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue