From f1d5476b28ac50d40313972e388d2f471a03edd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:52:59 +0200 Subject: [PATCH 1/4] autoupdate --- manifest.toml | 9 ++++++++- scripts/install | 16 ++-------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/manifest.toml b/manifest.toml index cc43da7..7911ad1 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ admindoc = "https://gogs.io/docs" code = "https://github.com/gogs/gogs" [integration] -yunohost = ">= 11.1.15" +yunohost = ">= 11.1.16" architectures = "all" multi_instance = true ldap = true @@ -56,6 +56,12 @@ ram.runtime = "50M" i386.url = "https://github.com/gogs/gogs/releases/download/v0.13.0/gogs_0.13.0_linux_386.tar.gz" i386.sha256 = "c4ddd0c9f1d9216ff15e0fbcb53f9da0999d0a3e84b2e270601aa86c8ff6f00c" + autoupdate.strategy = "latest_github_release" + autoupdate.asset.amd64 = "gogs_*_linux_amd64.tar.gz" + autoupdate.asset.arm64 = "gogs_*_linux_armv8.tar.gz" + autoupdate.asset.i386 = "gogs_*_linux_386.tar.gz" + autoupdate.asset.armhf = "gogs_*_linux_armv7.tar.gz" + [resources.ports] [resources.system_user] @@ -63,6 +69,7 @@ ram.runtime = "50M" [resources.install_dir] [resources.data_dir] + subdirs = ["data/repositories", "data/avatars", "data/attachments"] [resources.permissions] main.url = "/" diff --git a/scripts/install b/scripts/install index 0904208..f3c008a 100644 --- a/scripts/install +++ b/scripts/install @@ -31,6 +31,8 @@ ynh_script_progression --message="Setting up source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir=$install_dir +mkdir -p "$install_dir/custom/conf/auth.d" + chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -42,20 +44,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2 # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# CREATE DATA DIRECTORY -#================================================= -ynh_script_progression --message="Creating a data directory..." --weight=1 - -# create needed directories -mkdir -p "$install_dir/custom/conf/auth.d" -mkdir -p "$data_dir/data/repositories" -mkdir -p "$data_dir/data/avatars" -mkdir -p "$data_dir/data/attachments" - -chmod -R o-rwx "$data_dir" -chown -R $app:www-data "$data_dir" - #================================================= # ADD A CONFIGURATION #================================================= From 78cd1146eecdf93c78bff6df41cc512d06d65b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 2 Apr 2023 22:53:14 +0200 Subject: [PATCH 2/4] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 7911ad1..a0b8306 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Gogs" description.en = "Lightweight self-hosted Git forge" description.fr = "Forge Git légère auto-hébergé" -version = "0.13.0~ynh1" +version = "0.13.0~ynh2" maintainers = [] From 1d015bb375332ce019277a25cbcad49884333d61 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 2 Apr 2023 20:53:18 +0000 Subject: [PATCH 3/4] 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 5922c64..30c74a6 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Gogs (Go Git Service) is a git-based multiplatform forge written in Go. Its part - Authentication via SMTP, LDAP. -**Shipped version:** 0.13.0~ynh1 +**Shipped version:** 0.13.0~ynh2 **Demo:** https://try.gogs.io/user/login diff --git a/README_fr.md b/README_fr.md index f1489ad..a74d0ae 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po Gogs (Go Git Service) est une forge multiplateforme basée sur git écrite en Go. Sa particularité est d’être léger et pouvant fonctionner sur carte ARM, ce qui fait qu’il est adapté à l’auto-hébergement. Gogs a une interface web similaire à celle de GitHub. -**Version incluse :** 0.13.0~ynh1 +**Version incluse :** 0.13.0~ynh2 **Démo :** https://try.gogs.io/user/login From caa15ad5574942ce94c978a9b089ac6c5c3b2012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 5 Apr 2023 16:13:38 +0200 Subject: [PATCH 4/4] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index a0b8306..17d91f0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ admindoc = "https://gogs.io/docs" code = "https://github.com/gogs/gogs" [integration] -yunohost = ">= 11.1.16" +yunohost = ">= 11.1.17" architectures = "all" multi_instance = true ldap = true