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

Fix upgrade

This commit is contained in:
yalh76 2019-02-26 19:37:32 +01:00
parent 40e2c06f5f
commit 570b8a27d2
3 changed files with 20 additions and 4 deletions

View file

@ -103,6 +103,7 @@ ynh_install_app_dependencies postgresql libstdc++6 redis-server rabbitmq-server
#=================================================
# INSTALL NODEJS
#=================================================
ynh_print_info "Installing nodejs..."
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
@ -181,7 +182,7 @@ ynh_package_update
#=================================================
ynh_print_info "Install OnlyOffice..."
ynh_install_app_dependencies postgresql libstdc++6 redis-server rabbitmq-server onlyoffice-documentserver
ynh_package_install onlyoffice-documentserver
#=================================================
# MODIFY A CONFIG FILE

View file

@ -39,8 +39,9 @@ ynh_psql_remove_db $db_name $db_name
ynh_print_info "Removing dependencies"
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
ynh_package_remove onlyoffice-documentserver
ynh_package_remove nodejs
ynh_remove_app_dependencies
#=================================================
# REMOVE APP MAIN DIR

View file

@ -77,14 +77,28 @@ path_url=$(ynh_normalize_url_path $path_url)
ynh_print_info "Upgrading nginx web server configuration..."
# Create a dedicated nginx config
ynh_add_nginx_config
ynh_add_nginx_config "nextclouddomain"
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_print_info "Upgrading dependencies..."
ynh_install_app_dependencies deb1 deb2
ynh_install_app_dependencies postgresql libstdc++6 redis-server rabbitmq-server
#=================================================
# UPGRADE NODEJS
#=================================================
ynh_print_info "Upgrading nodejs..."
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
#=================================================
# UPGRADE ONLYOFFICE
#=================================================
ynh_print_info "Upgrading OnlyOffice..."
ynh_package_install onlyoffice-documentserver
#=================================================
# CREATE DEDICATED USER