From 52eee0a7fa6df409dc7f9a36f85ebff751055228 Mon Sep 17 00:00:00 2001
From: tituspijean <tituspijean@outlook.com>
Date: Fri, 22 Oct 2021 20:16:20 +0200
Subject: [PATCH 1/3] Fix auto-updater script

---
 .github/workflows/updater.sh | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh
index e139f0c..cb2105f 100755
--- a/.github/workflows/updater.sh
+++ b/.github/workflows/updater.sh
@@ -71,8 +71,8 @@ if [ ! -z "$src" ]; then
 tempdir="$(mktemp -d)"
 
 # Download sources and calculate checksum
-filename=${DOWNLOAD_URL##*/}
-curl --silent -4 -L $DOWNLOAD_URL -o "$tempdir/$filename"
+filename=${asset_url##*/}
+curl --silent -4 -L $asset_url -o "$tempdir/$filename"
 checksum=$(sha256sum "$tempdir/$filename" | head -c 64)
 
 # Delete temporary directory
@@ -87,7 +87,7 @@ fi
 
 # Rewrite source file
 cat <<EOT > conf/$src.src
-SOURCE_URL=$DOWNLOAD_URL
+SOURCE_URL=$asset_url
 SOURCE_SUM=$checksum
 SOURCE_SUM_PRG=sha256sum
 SOURCE_FORMAT=$extension
@@ -113,11 +113,8 @@ done
 # GENERIC FINALIZATION
 #=================================================
 
-# Install moreutils, needed for sponge
-sudo apt-get install moreutils
-
 # Replace new version in manifest
-jq -s --indent 4 ".[] | .version = \"$VERSION~ynh1\"" manifest.json | sponge manifest.json
+echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json
 
 # No need to update the README, yunohost-bot takes care of it
 

From 2dc14f6fe90544b4b63088063020f0663bdfad12 Mon Sep 17 00:00:00 2001
From: yunohost-bot <yunohost-bot@users.noreply.github.com>
Date: Fri, 22 Oct 2021 18:17:41 +0000
Subject: [PATCH 2/3] Upgrade to v2.1.1

---
 conf/app.src  | 4 ++--
 manifest.json | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/conf/app.src b/conf/app.src
index 047e97b..58893a2 100644
--- a/conf/app.src
+++ b/conf/app.src
@@ -1,5 +1,5 @@
-SOURCE_URL=https://github.com/node-red/node-red/releases/download/2.0.6/node-red-2.0.6.zip
-SOURCE_SUM=ddeeb2afebef145715c94b1888b08ee1b69290bb5440b5318c2523bf3bd0f290
+SOURCE_URL=https://github.com/node-red/node-red/releases/download/2.1.1/node-red-2.1.1.zip
+SOURCE_SUM=e180c35dac0bedfd12af6e892d7621019b485dfe22f403ef216f65a2340836a2
 SOURCE_SUM_PRG=sha256sum
 SOURCE_FORMAT=zip
 SOURCE_IN_SUBDIR=true
diff --git a/manifest.json b/manifest.json
index 132dcc9..ada0659 100644
--- a/manifest.json
+++ b/manifest.json
@@ -6,7 +6,7 @@
         "en": "Flow-based programming for the Internet of Things",
         "fr": "Programmation par flux de données pour l'Internet des objets"
     },
-    "version": "2.0.6~ynh1",
+    "version": "2.1.1~ynh1",
     "url": "https://nodered.org",
     "upstream": {
         "license": "Apache-2.0",
@@ -27,7 +27,7 @@
         "nginx"
     ],
     "arguments": {
-        "install" : [
+        "install": [
             {
                 "name": "domain",
                 "type": "domain"

From e578a18dcdff27fd798e44f0bc7e944910b65602 Mon Sep 17 00:00:00 2001
From: Yunohost-Bot <>
Date: Fri, 22 Oct 2021 18:17:45 +0000
Subject: [PATCH 3/3] Auto-update README

---
 README.md    | 2 +-
 README_fr.md | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 8f26ce0..2685459 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ It provides a browser-based editor that makes it easy to wire together flows usi
 - Custom JavaScript functions can be written
 
 
-**Shipped version:** 2.0.6~ynh1
+**Shipped version:** 2.1.1~ynh1
 
 
 
diff --git a/README_fr.md b/README_fr.md
index 4e1e058..f7650a4 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -23,7 +23,7 @@ Il propose un éditeur accessible dans le navigateur, qui facilite l'ébauche de
 - Fonctions personnalisées en JavaScript
 
 
-**Version incluse :** 2.0.6~ynh1
+**Version incluse :** 2.1.1~ynh1