From 13cad968d88c7fbe519e4ce232844eb62424a478 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 21 May 2017 15:05:54 +0200 Subject: [PATCH 1/5] [fix] add additional package for release 1.4 #30 --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 0c71505..8772b18 100644 --- a/scripts/install +++ b/scripts/install @@ -41,7 +41,7 @@ ynh_app_setting_set $app language $language sudo adduser $app --home /opt/$app --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password --disabled-login # Install debian package -ynh_package_install imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https +ynh_package_install imagemagick libpq-dev libxml2-dev libxslt1-dev file curl apt-transport-https pkg-config libprotobuf-dev protobuf-compiler # Install redis package ynh_package_install redis-server redis-tools From a074e13ef5da22c5880d31e37c7793d6c6c42b04 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 21 May 2017 15:17:07 +0200 Subject: [PATCH 2/5] [fix] update node version to 6 #29 --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 8772b18..ebe4569 100644 --- a/scripts/install +++ b/scripts/install @@ -66,7 +66,7 @@ ynh_app_setting_set $app final_path $final_path # Install de Node.js pushd /opt -curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - +curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - sudo apt-get -y install nodejs # Install Yarn From c7eb4ace251956c4ef69a3b4478c8611aab442fc Mon Sep 17 00:00:00 2001 From: nemsia Date: Sun, 21 May 2017 15:23:14 +0200 Subject: [PATCH 3/5] Upgrade with latest stable version (#31) * [enh] Upgrade on latest Upgrade with latest mastodon stable version --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index f070bbd..d217de6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,9 +50,11 @@ PULLCOMMANDS # Switch branch to tagged release cd $final_path/live +url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4) +version=$(echo $url | cut -d/ -f8) sudo su - $app < Date: Sun, 21 May 2017 17:02:13 +0200 Subject: [PATCH 4/5] [fix] upgrade ndeojs version --- scripts/upgrade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index d217de6..4038fa7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -40,6 +40,14 @@ sudo systemctl stop mastodon-*.service # Change owner of live folder sudo chown -R $app: $final_path/live +# upgrade Node.js v4 to v6 +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 + # Download Mastodon sudo su - $app < Date: Sun, 21 May 2017 17:48:52 +0200 Subject: [PATCH 5/5] [fix] Install lastest release --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index ebe4569..1634c52 100644 --- a/scripts/install +++ b/scripts/install @@ -95,9 +95,11 @@ CLONECOMMANDS # Switch branch to tagged release cd $final_path/live +url=$(curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest | sort -r | head -1 | cut -d\" -f4) +version=$(echo $url | cut -d/ -f8) sudo su - $app <