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

autoupdate

This commit is contained in:
Éric Gaspar 2023-04-02 22:52:59 +02:00
parent 616d120a7c
commit f1d5476b28
2 changed files with 10 additions and 15 deletions

View file

@ -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 = "/"

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