From 2d1465e29b651445603eae24d9d939fe9dfc5f5c Mon Sep 17 00:00:00 2001 From: nemsia Date: Mon, 3 Sep 2018 01:12:59 +0200 Subject: Upgrade to 2.5.0 --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 12 +++++------- 3 files changed, 7 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/install b/scripts/install index 5d5bf1e..0959371 100644 --- a/scripts/install +++ b/scripts/install @@ -94,7 +94,7 @@ ynh_app_setting_set "$app" final_path "$final_path" # TODO: use https://github.com/YunoHost-Apps/Experimental_helpers/blob/master/ynh_install_nodejs/ynh_install_nodejs ( cd /opt - curl -sL https://deb.nodesource.com/setup_6.x | bash - + curl -sL https://deb.nodesource.com/setup_8.x | bash - apt-get -y install nodejs ) diff --git a/scripts/restore b/scripts/restore index a8dc79f..1682d23 100644 --- a/scripts/restore +++ b/scripts/restore @@ -99,7 +99,7 @@ ynh_package_update # TODO: use https://github.com/YunoHost-Apps/Experimental_helpers/blob/master/ynh_install_nodejs/ynh_install_nodejs ( cd /opt - curl -sL https://deb.nodesource.com/setup_6.x | bash - + curl -sL https://deb.nodesource.com/setup_8.x | bash - apt-get -y install nodejs ) diff --git a/scripts/upgrade b/scripts/upgrade index c6b7a83..b80ecdb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,14 +86,12 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.lis # INSTALL DEPENDENCIES #================================================= -# upgrade Node.js v4 to v6 +# upgrade Node.js to v8 # TODO: use https://github.com/YunoHost-Apps/Experimental_helpers/blob/master/ynh_install_nodejs/ynh_install_nodejs -node_version=$(nodejs --version) -if [[ $node_version =~ ^v4.*$ ]]; then - pushd /opt - curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - - sudo apt-get -y install nodejs -fi +pushd /opt +curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - +sudo apt-get -y install nodejs +popd # add additional package for upgrade ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all -- cgit v1.2.3-70-g09d2