Merge pull request #45 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G
2025-10-05 09:01:33 +02:00
committed by GitHub
8 changed files with 5 additions and 33 deletions

View File

@ -18,7 +18,7 @@ demo = "https://send.vis.ee/"
code = "https://github.com/timvisee/send"
[integration]
yunohost = ">= 12.0.9"
yunohost = ">= 12.1.17"
helpers_version = "2.1"
architectures = ["amd64", "arm64", "armhf"]
multi_instance = true
@ -69,4 +69,7 @@ ram.runtime = "50M"
download.additional_urls = [ "re:^__DOMAIN__/.*.css$", "re:^__DOMAIN__/.*.js$", "re:^__DOMAIN__/.*.svg$", "re:^__DOMAIN__/.*.woff2$", "re:^__DOMAIN__/favicon.*.png$" ]
[resources.apt]
packages = ["redis-server"]
packages = "redis-server"
[resources.nodejs]
version = "16"

View File

@ -1,7 +0,0 @@
#!/bin/bash
#=================================================
# COMMON VARIABLES AND CUSTOM HELPERS
#=================================================
nodejs_version="16"

View File

@ -1,6 +1,5 @@
#!/bin/bash
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
ynh_print_info "Declaring files to be backed up..."

View File

@ -1,6 +1,5 @@
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================

View File

@ -1,15 +1,7 @@
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_script_progression "Installing dependencies..."
ynh_nodejs_install
#=================================================
# CREATE A REDIS DATABASE
#=================================================

View File

@ -1,6 +1,5 @@
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
@ -18,8 +17,6 @@ ynh_redis_remove_db "$redis_db"
ynh_config_remove_nginx
ynh_nodejs_remove
#=================================================
# END OF SCRIPT
#=================================================

View File

@ -1,6 +1,5 @@
#!/bin/bash
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
#=================================================
@ -17,8 +16,6 @@ chmod +x "$install_dir/server/bin/prod.js"
#=================================================
ynh_script_progression "Reinstalling dependencies..."
ynh_nodejs_install
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore "/etc/systemd/system/$app.service"

View File

@ -1,6 +1,5 @@
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
@ -26,13 +25,6 @@ ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js" --full_repl
chmod +x "$install_dir/server/bin/prod.js"
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_script_progression "Upgrading dependencies..."
ynh_nodejs_install
#=================================================
# NGINX CONFIGURATION
#=================================================