Skip to content

Commit

Permalink
Merge pull request #76 from YunoHost-Apps/testing
Browse files Browse the repository at this point in the history
autoupdate
  • Loading branch information
ericgaspar authored Apr 5, 2023
2 parents 4f6c640 + caa15ad commit 9869fe6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 9 additions & 2 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand All @@ -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
Expand Down Expand Up @@ -56,13 +56,20 @@ 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]

[resources.install_dir]

[resources.data_dir]
subdirs = ["data/repositories", "data/avatars", "data/attachments"]

[resources.permissions]
main.url = "/"
Expand Down
16 changes: 2 additions & 14 deletions scripts/install
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
#=================================================
Expand Down

0 comments on commit 9869fe6

Please sign in to comment.