From 8cc23b24b10a39ac3b25131e38ea1b4efaa696a3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 5 Jun 2021 15:32:05 +0200 Subject: [PATCH] Fix --- manifest.json | 2 +- scripts/install | 20 ++++++++++---------- scripts/upgrade | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/manifest.json b/manifest.json index ba36430..cf69775 100644 --- a/manifest.json +++ b/manifest.json @@ -31,7 +31,7 @@ { "name": "domain", "type": "domain", - "example": "domain.org" + "example": "example.com" }, { "name": "is_public", diff --git a/scripts/install b/scripts/install index 59878bb..f687ebf 100644 --- a/scripts/install +++ b/scripts/install @@ -96,16 +96,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1 # Create a dedicated NGINX config ynh_add_nginx_config -#================================================= -# ADD A CONFIGURATION -#================================================= -# ynh_script_progression --message="Adding a configuration file..." --weight=1 - -# ynh_add_config --template="../conf/config.local.js" --destination="$final_path/dist/config.local.js" - -# chmod 400 "$final_path/dist/config.local.js" -# chown $app "$final_path/dist/config.local.js" - #================================================= # SPECIFIC SETUP #================================================= @@ -122,6 +112,16 @@ ynh_use_nodejs ls -lah ) +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/config.local.js" --destination="$final_path/dist/config.local.js" + +chmod 400 "$final_path/dist/config.local.js" +chown $app "$final_path/dist/config.local.js" + #================================================= # SETUP SYSTEMD #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 66d150e..3eb8940 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,7 +84,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/dist/config.local.js" + ynh_setup_source --dest_dir="$final_path" --keep="$final_path/dist/config.local.js" fi chmod 750 "$final_path"