This commit is contained in:
eric_G 2025-04-01 23:31:32 +02:00
parent aef113307b
commit ac39aded73
3 changed files with 15 additions and 0 deletions

View File

@ -53,6 +53,8 @@ ram.runtime = "50M"
[resources.install_dir]
[resources.data_dir]
[resources.permissions]
main.url = "/"
main.additional_urls = ["/api/upload"]

View File

@ -11,6 +11,12 @@ ynh_print_info "Declaring files to be backed up..."
ynh_backup "$install_dir"
#=================================================
# BACKUP THE DATA DIR
#=================================================
ynh_backup "$data_dir"
#=================================================
# SYSTEM CONFIGURATION
#=================================================

View File

@ -12,6 +12,13 @@ ynh_restore "$install_dir"
chmod +x "$install_dir/server/bin/prod.js"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression "Restoring the data directory..."
ynh_restore "$data_dir"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================