1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gogs_ynh.git synced 2024-09-03 20:36:23 +02:00

Merge pull request #76 from YunoHost-Apps/testing

autoupdate
This commit is contained in:
Éric Gaspar 2023-04-05 17:07:46 +02:00 committed by GitHub
commit 9869fe6c46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 18 deletions

View file

@ -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

View file

@ -19,7 +19,7 @@ Si vous navez 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 quil est adapté à lauto-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

View file

@ -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 = []
@ -17,7 +17,7 @@ admindoc = "https://gogs.io/docs"
code = "https://github.com/gogs/gogs"
[integration]
yunohost = ">= 11.1.15"
yunohost = ">= 11.1.17"
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 = "/"

View file

@ -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
#=================================================