From f1429b3b40c9767dff509beb75f5a9921035f757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 10 Sep 2019 21:20:43 +0200 Subject: [PATCH 1/4] Update to v1.9.3 --- conf/source/arm.src | 4 ++-- conf/source/armv7.src | 4 ++-- conf/source/i386.src | 4 ++-- conf/source/x86-64.src | 4 ++-- manifest.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/conf/source/arm.src b/conf/source/arm.src index ec5d91f..451f689 100644 --- a/conf/source/arm.src +++ b/conf/source/arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.0/gitea-1.9.0-linux-arm-6 -SOURCE_SUM=f2dff72ee94dd1c1bd2c067470469470ea079c47c07e862995cb85dc877ca389 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-arm-6 +SOURCE_SUM=5fb21ce111be55f538983feb4a57ce56abc46614ab5ccd110cee0a8b8c775270 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/armv7.src b/conf/source/armv7.src index a48f59b..bd7d2e8 100644 --- a/conf/source/armv7.src +++ b/conf/source/armv7.src @@ -1,8 +1,8 @@ # The armv7 build is brocken # See : https://github.com/go-gitea/gitea/issues/6700 # Use temporary the armv6 binary -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.0/gitea-1.9.0-linux-arm-6 -SOURCE_SUM=f2dff72ee94dd1c1bd2c067470469470ea079c47c07e862995cb85dc877ca389 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-arm-6 +SOURCE_SUM=5fb21ce111be55f538983feb4a57ce56abc46614ab5ccd110cee0a8b8c775270 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/i386.src b/conf/source/i386.src index be860f1..3e123fe 100644 --- a/conf/source/i386.src +++ b/conf/source/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.0/gitea-1.9.0-linux-386 -SOURCE_SUM=861125e85b95a90bb84279641ad60ee3c9570dd8b0d134d8419812ba7571af71 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-386 +SOURCE_SUM=4c383b1668ef56973525b33c28d2af9c7ea63f0c23bbb1df92580f9dcd826d25 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/x86-64.src b/conf/source/x86-64.src index 5da34a0..aba2b4f 100644 --- a/conf/source/x86-64.src +++ b/conf/source/x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.0/gitea-1.9.0-linux-amd64 -SOURCE_SUM=8a2e02cee40086effd99058054af8fb1eee9344fad865e0c7292107833da78cc +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-amd64 +SOURCE_SUM=e0ed3c89dc58f5ce40e64976a673729fdb8620a86cb9d80a1ad9141290c4d235 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/manifest.json b/manifest.json index b860b78..45d8fda 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ }, "url": "http://gitea.io", "license": "MIT", - "version": "1.9.0~ynh1", + "version": "1.9.3~ynh1", "maintainer": { "name": "rafi59", "email": "rafi59_dev@srvmaison.fr.nf" From 6b703dccecb7db3eff748d75a89b1438da8d9ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 26 Oct 2019 21:58:57 +0200 Subject: [PATCH 2/4] Update to gitea 1.9.4 --- conf/source/arm.src | 4 ++-- conf/source/armv7.src | 4 ++-- conf/source/i386.src | 4 ++-- conf/source/x86-64.src | 4 ++-- manifest.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/conf/source/arm.src b/conf/source/arm.src index 451f689..fdc6113 100644 --- a/conf/source/arm.src +++ b/conf/source/arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-arm-6 -SOURCE_SUM=5fb21ce111be55f538983feb4a57ce56abc46614ab5ccd110cee0a8b8c775270 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-arm-6 +SOURCE_SUM=0290abede7462df103c78dc46546a8b0199c727e7b6af50119091d55a6cb1ff1 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/armv7.src b/conf/source/armv7.src index bd7d2e8..a46b1c9 100644 --- a/conf/source/armv7.src +++ b/conf/source/armv7.src @@ -1,8 +1,8 @@ # The armv7 build is brocken # See : https://github.com/go-gitea/gitea/issues/6700 # Use temporary the armv6 binary -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-arm-6 -SOURCE_SUM=5fb21ce111be55f538983feb4a57ce56abc46614ab5ccd110cee0a8b8c775270 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-arm-6 +SOURCE_SUM=0290abede7462df103c78dc46546a8b0199c727e7b6af50119091d55a6cb1ff1 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/i386.src b/conf/source/i386.src index 3e123fe..057c30f 100644 --- a/conf/source/i386.src +++ b/conf/source/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-386 -SOURCE_SUM=4c383b1668ef56973525b33c28d2af9c7ea63f0c23bbb1df92580f9dcd826d25 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-386 +SOURCE_SUM=164dad65f4a3f10e3568a29a16c3dac0888265c8995f80feb138cdb5bc15207a SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/x86-64.src b/conf/source/x86-64.src index aba2b4f..719bacd 100644 --- a/conf/source/x86-64.src +++ b/conf/source/x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.3/gitea-1.9.3-linux-amd64 -SOURCE_SUM=e0ed3c89dc58f5ce40e64976a673729fdb8620a86cb9d80a1ad9141290c4d235 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-amd64 +SOURCE_SUM=5620c65d553c33b7c32cf058ec86d0ef2c7b6bc7ed2ebc3127448cea1370eb04 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/manifest.json b/manifest.json index 45d8fda..4f827b5 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ }, "url": "http://gitea.io", "license": "MIT", - "version": "1.9.3~ynh1", + "version": "1.9.4~ynh1", "maintainer": { "name": "rafi59", "email": "rafi59_dev@srvmaison.fr.nf" From 4882f6ad63a1fef28099ee476cd2beccc3d1cfae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 27 Oct 2019 14:54:35 +0100 Subject: [PATCH 3/4] Add last progession log --- scripts/backup | 2 ++ scripts/change_url | 2 ++ scripts/install | 2 ++ scripts/remove | 2 +- scripts/restore | 2 ++ scripts/upgrade | 2 ++ 6 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index ffce7d0..fa8c8ce 100644 --- a/scripts/backup +++ b/scripts/backup @@ -43,3 +43,5 @@ ynh_backup --src_path "/var/log/$app" # Dump the database ynh_script_progression --message="Backing up database" ynh_mysql_dump_db "$dbname" > ./db.sql + +ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last diff --git a/scripts/change_url b/scripts/change_url index 7aca383..c14ee9d 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -61,3 +61,5 @@ sleep 1 # Store the checksum with the 'INTERNAL_TOKEN' value. # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed ynh_store_file_checksum --file "$final_path/custom/conf/app.ini" + +ynh_script_progression --message="Change of URL completed for $app" --last diff --git a/scripts/install b/scripts/install index 4e45cd0..b61967d 100644 --- a/scripts/install +++ b/scripts/install @@ -132,3 +132,5 @@ sleep 1 # Store the checksum with the 'INTERNAL_TOKEN' value. # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed ynh_store_file_checksum --file "$final_path/custom/conf/app.ini" + +ynh_script_progression --message="Installation of $app completed" --last diff --git a/scripts/remove b/scripts/remove index d6e18e3..e1c51a7 100644 --- a/scripts/remove +++ b/scripts/remove @@ -60,4 +60,4 @@ yunohost service remove "$app" ynh_script_progression --message="Removing fail2ban configuration..." ynh_remove_fail2ban_config -true # Do not fail if remove after install error +ynh_script_progression --message="Removal of $app completed" --last diff --git a/scripts/restore b/scripts/restore index f98ab3e..2cc109d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -80,3 +80,5 @@ ynh_script_progression --message="Reloading services..." systemctl reload nginx.service ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10 sleep 1 + +ynh_script_progression --message="Restoration completed for $app" --last diff --git a/scripts/upgrade b/scripts/upgrade index 6a2e577..5bb798b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -220,3 +220,5 @@ you don't see Gogs as installed." >&2 chmod +x /tmp/$script_post_migration (cd /tmp; echo "/tmp/$script_post_migration > /tmp/$script_post_migration.log 2>&1" | at now + 2 minutes) fi + +ynh_script_progression --message="Upgrade of $app completed" --last From 44b073be4b13da4c317231fb31d15868a58ad400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 31 Oct 2019 21:36:26 +0100 Subject: [PATCH 4/4] Upgrade to 1.9.5 --- README.md | 2 +- conf/source/arm.src | 4 ++-- conf/source/armv7.src | 4 ++-- conf/source/i386.src | 4 ++-- conf/source/x86-64.src | 4 ++-- manifest.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a202897..211befc 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Overview Gitea is a fork of Gogs a self-hosted Git service written in Go. Alternative to Github. -**Shipped version:** 1.9.4 +**Shipped version:** 1.9.5 Screenshots ----------- diff --git a/conf/source/arm.src b/conf/source/arm.src index fdc6113..b058882 100644 --- a/conf/source/arm.src +++ b/conf/source/arm.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-arm-6 -SOURCE_SUM=0290abede7462df103c78dc46546a8b0199c727e7b6af50119091d55a6cb1ff1 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.5/gitea-1.9.5-linux-arm-6 +SOURCE_SUM=466201f7ebe800ff1667fe84e8ad9ac656df8ce11750f26b0c23715024eb8bc8 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/armv7.src b/conf/source/armv7.src index a46b1c9..c13a7a1 100644 --- a/conf/source/armv7.src +++ b/conf/source/armv7.src @@ -1,8 +1,8 @@ # The armv7 build is brocken # See : https://github.com/go-gitea/gitea/issues/6700 # Use temporary the armv6 binary -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-arm-6 -SOURCE_SUM=0290abede7462df103c78dc46546a8b0199c727e7b6af50119091d55a6cb1ff1 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.5/gitea-1.9.5-linux-arm-6 +SOURCE_SUM=466201f7ebe800ff1667fe84e8ad9ac656df8ce11750f26b0c23715024eb8bc8 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/i386.src b/conf/source/i386.src index 057c30f..f3bca38 100644 --- a/conf/source/i386.src +++ b/conf/source/i386.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-386 -SOURCE_SUM=164dad65f4a3f10e3568a29a16c3dac0888265c8995f80feb138cdb5bc15207a +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.5/gitea-1.9.5-linux-386 +SOURCE_SUM=3c5eaa89df1da3157b85ef3de7483ff048c2fad59ded84d91bbd627b6e0e518b SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/conf/source/x86-64.src b/conf/source/x86-64.src index 719bacd..16600ad 100644 --- a/conf/source/x86-64.src +++ b/conf/source/x86-64.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.4/gitea-1.9.4-linux-amd64 -SOURCE_SUM=5620c65d553c33b7c32cf058ec86d0ef2c7b6bc7ed2ebc3127448cea1370eb04 +SOURCE_URL=https://github.com/go-gitea/gitea/releases/download/v1.9.5/gitea-1.9.5-linux-amd64 +SOURCE_SUM=67accc6d0cd68fa3cc38f805d00a30d9cdc20b6e43734db2ab0ec481e9592687 SOURCE_SUM_PRG=sha256sum SOURCE_FILENAME=gitea SOURCE_EXTRACT=false diff --git a/manifest.json b/manifest.json index d2d14cb..e8500d0 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ }, "url": "http://gitea.io", "license": "MIT", - "version": "1.9.4~ynh1", + "version": "1.9.5~ynh1", "maintainer": { "name": "rafi59", "email": "rafi59_dev@srvmaison.fr.nf"