mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2025-10-09 04:02:56 +02:00
[autopatch] Automatic patch to use nodejs/ruby/go/compose resources + remove empty _common.sh
This commit is contained in:

committed by
Alexandre Aubin

parent
bf4851188a
commit
85bd8b0e87
@ -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
|
||||
@ -70,3 +70,6 @@ ram.runtime = "50M"
|
||||
|
||||
[resources.apt]
|
||||
packages = "redis-server"
|
||||
|
||||
[resources.nodejs]
|
||||
version = "16"
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# COMMON VARIABLES AND CUSTOM HELPERS
|
||||
#=================================================
|
||||
|
||||
nodejs_version="16"
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ../settings/scripts/_common.sh
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
ynh_print_info "Declaring files to be backed up..."
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
@ -8,7 +8,7 @@ source /usr/share/yunohost/helpers
|
||||
#=================================================
|
||||
ynh_script_progression "Installing dependencies..."
|
||||
|
||||
ynh_nodejs_install
|
||||
#REMOVEME? ynh_nodejs_install
|
||||
|
||||
#=================================================
|
||||
# CREATE A REDIS DATABASE
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
@ -18,7 +18,7 @@ ynh_redis_remove_db "$redis_db"
|
||||
|
||||
ynh_config_remove_nginx
|
||||
|
||||
ynh_nodejs_remove
|
||||
#REMOVEME? ynh_nodejs_remove
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ../settings/scripts/_common.sh
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
@ -17,7 +17,7 @@ chmod +x "$install_dir/server/bin/prod.js"
|
||||
#=================================================
|
||||
ynh_script_progression "Reinstalling dependencies..."
|
||||
|
||||
ynh_nodejs_install
|
||||
#REMOVEME? ynh_nodejs_install
|
||||
|
||||
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
@ -31,7 +31,7 @@ chmod +x "$install_dir/server/bin/prod.js"
|
||||
#=================================================
|
||||
ynh_script_progression "Upgrading dependencies..."
|
||||
|
||||
ynh_nodejs_install
|
||||
#REMOVEME? ynh_nodejs_install
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
Reference in New Issue
Block a user