mirror of
https://github.com/YunoHost-Apps/wikijs_ynh.git
synced 2024-09-03 20:36:09 +02:00
Merge pull request #25 from YunoHost-Apps/remove_repository_dependency
Remove repository dependency
This commit is contained in:
commit
230d9c0c2f
5 changed files with 26 additions and 13 deletions
|
@ -89,6 +89,13 @@ port=$(ynh_find_port 8095)
|
|||
#ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
||||
ynh_app_setting_set $app port $port
|
||||
|
||||
#=================================================
|
||||
# INSTALL YARN 1.13.0
|
||||
#=================================================
|
||||
ynh_print_info "Installing yarn 1.13.0..."
|
||||
|
||||
sudo apt install -y ../sources/yarn_1.13.0_all.deb
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
@ -101,12 +108,9 @@ ynh_print_info "Installing dependencies..."
|
|||
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
|
||||
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
ynh_install_nodejs 10
|
||||
|
||||
ynh_install_app_dependencies yarn redis-server postgresql postgresql-contrib build-essential
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib build-essential
|
||||
|
||||
#=================================================
|
||||
# CREATE A POSTGRESQL DATABASE
|
||||
|
|
|
@ -62,7 +62,12 @@ ynh_remove_app_dependencies
|
|||
ynh_use_nodejs
|
||||
ynh_remove_nodejs
|
||||
|
||||
ynh_secure_remove "/etc/apt/sources.list.d/yarn.list"
|
||||
#=================================================
|
||||
# REMOVE YARN 1.13.0
|
||||
#=================================================
|
||||
ynh_print_info "Removing yarn 1.13.0..."
|
||||
|
||||
sudo apt remove -y yarn
|
||||
|
||||
#=================================================
|
||||
# REMOVE APP MAIN DIR
|
||||
|
|
|
@ -89,12 +89,9 @@ ynh_print_info "Reinstalling dependencies..."
|
|||
|
||||
# Define and install dependencies
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
ynh_install_nodejs 10
|
||||
|
||||
ynh_install_app_dependencies yarn redis-server postgresql postgresql-contrib build-essential
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib build-essential
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE POSTGRESQL DATABASE
|
||||
|
|
|
@ -53,6 +53,9 @@ if [ -z $final_path ]; then
|
|||
ynh_app_setting_set $app final_path $final_path
|
||||
fi
|
||||
|
||||
# Remove yarn repository
|
||||
ynh_secure_remove "/etc/apt/sources.list.d/yarn.list"
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -99,17 +102,21 @@ ynh_print_info "Upgrading nginx web server configuration..."
|
|||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# INSTALL YARN 1.13.0
|
||||
#=================================================
|
||||
ynh_print_info "Installing yarn 1.13.0..."
|
||||
|
||||
sudo apt install -y ../sources/yarn_1.13.0_all.deb
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_print_info "Upgrading dependencies..."
|
||||
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
ynh_install_nodejs 10
|
||||
|
||||
ynh_install_app_dependencies yarn redis-server postgresql postgresql-contrib build-essential
|
||||
ynh_install_app_dependencies redis-server postgresql postgresql-contrib build-essential
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
|
|
BIN
sources/yarn_1.13.0_all.deb
Normal file
BIN
sources/yarn_1.13.0_all.deb
Normal file
Binary file not shown.
Loading…
Reference in a new issue