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 ;;; Options
Email= Email=
Notification=none 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,5 +1,5 @@
{ {
"team_name": "My Open Spacedeck", "team_name": "YunoHost Spacedeck",
"contact_email": "webmaster@__DOMAIN__", "contact_email": "webmaster@__DOMAIN__",
"host": "localhost", "host": "localhost",
@ -29,11 +29,10 @@
"mail_provider": "smtp", "mail_provider": "smtp",
"mail_smtp_host": "localhost", "mail_smtp_host": "localhost",
"mail_smtp_port": 587, "mail_smtp_port": 25,
"mail_smtp_secure": false, "mail_smtp_secure": false,
"mail_smtp_require_tls": false, "mail_smtp_require_tls": false,
"mail_smtp_user": "__APP__@__DOMAIN__", "mail_smtp_user": "__APP__@__DOMAIN__",
"mail_smtp_pass": "", "mail_smtp_pass": "",
"spacedeck": {} "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 # Backup the current version of the app
ynh_backup_before_upgrade ynh_backup_before_upgrade
ynh_clean_setup () { 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. # 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" 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_script_progression --message="Installing dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
#================================================= #=================================================

View file

@ -45,7 +45,7 @@ test ! -d $final_path \
#================================================= #=================================================
# RESTORE THE NGINX CONFIGURATION # 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" 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 # Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION 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_script_progression --message="Upgrading dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
#================================================= #=================================================