1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spacedeck_ynh.git synced 2024-09-03 20:26:14 +02:00

Apply last example_ynh

This commit is contained in:
yalh76 2022-05-09 20:43:21 +02:00
parent a5e59df272
commit eb26d569ab
6 changed files with 38 additions and 45 deletions

View file

@ -18,7 +18,3 @@
;;; Options
Email=
Notification=none
;;; Upgrade options
; commit=CommitHash
name=Name and date of the commit.
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=1&

View file

@ -1,39 +1,38 @@
{
"team_name": "My Open Spacedeck",
"contact_email": "webmaster@__DOMAIN__",
"host": "localhost",
"port": __PORT__,
"endpoint": "https://__DOMAIN____PATH__",
"invite_code": "__INVITE_SECRET__",
"storage_dialect": "sqlite",
"storage_host": "localhost",
"storage_database": "spacedeck",
"storage_username": "username",
"storage_password": "password",
"storage_local_path": "__DATADIR__/storage",
"storage_local_db": "./database/database.sqlite",
"storage_region": "eu-central-1",
"storage_endpoint": "http://localhost:4572",
"storage_bucket": "my_spacedeck_bucket",
"storage_cdn": "/storage",
"mongodb_host": "localhost",
"redis_mock": true,
"redis_host": "localhost",
"team_name": "YunoHost Spacedeck",
"contact_email": "webmaster@__DOMAIN__",
"export_api_secret": "__API_SECRET__",
"mail_provider": "smtp",
"mail_smtp_host": "localhost",
"mail_smtp_port": 587,
"mail_smtp_secure": false,
"mail_smtp_require_tls": false,
"mail_smtp_user": "__APP__@__DOMAIN__",
"mail_smtp_pass": "",
"spacedeck": {}
}
"host": "localhost",
"port": __PORT__,
"endpoint": "https://__DOMAIN____PATH__",
"invite_code": "__INVITE_SECRET__",
"storage_dialect": "sqlite",
"storage_host": "localhost",
"storage_database": "spacedeck",
"storage_username": "username",
"storage_password": "password",
"storage_local_path": "__DATADIR__/storage",
"storage_local_db": "./database/database.sqlite",
"storage_region": "eu-central-1",
"storage_endpoint": "http://localhost:4572",
"storage_bucket": "my_spacedeck_bucket",
"storage_cdn": "/storage",
"mongodb_host": "localhost",
"redis_mock": true,
"redis_host": "localhost",
"export_api_secret": "__API_SECRET__",
"mail_provider": "smtp",
"mail_smtp_host": "localhost",
"mail_smtp_port": 25,
"mail_smtp_secure": false,
"mail_smtp_require_tls": false,
"mail_smtp_user": "__APP__@__DOMAIN__",
"mail_smtp_pass": "",
"spacedeck": {}
}

View file

@ -47,6 +47,7 @@ ynh_script_progression --message="Backing up the app before changing its URL (ma
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
ynh_clean_check_starting
# Remove the new domain config file, the remove script won't do it as it doesn't know yet its location.
ynh_secure_remove --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"

View file

@ -65,7 +65,6 @@ ynh_app_setting_set --app=$app --key=port --value=$port
ynh_script_progression --message="Installing dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
#=================================================

View file

@ -45,7 +45,7 @@ test ! -d $final_path \
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
@ -90,7 +90,6 @@ ynh_script_progression --message="Reinstalling dependencies..." --weight=1
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
#=================================================

View file

@ -105,7 +105,6 @@ ynh_add_nginx_config
ynh_script_progression --message="Upgrading dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
#=================================================