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