diff --git a/conf/nginx.conf b/conf/nginx.conf index 5a91f4c..6c989ad 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,7 @@ location __PATH__/ { # Path to source alias __INSTALL_DIR__/; - index CyberChef_v9.55.0.html; + index __INDEX_PAGE__; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; diff --git a/scripts/change_url b/scripts/change_url index 9c8f778..fe8ff1c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -9,6 +9,9 @@ source _common.sh source /usr/share/yunohost/helpers +upstream_version=$(ynh_app_upstream_version) +index_page="CyberChef_v${upstream_version}.html" + #================================================= # STANDARD MODIFICATIONS #================================================= diff --git a/scripts/install b/scripts/install index 57d9907..cac142f 100755 --- a/scripts/install +++ b/scripts/install @@ -9,6 +9,9 @@ source _common.sh source /usr/share/yunohost/helpers +upstream_version=$(ynh_app_upstream_version) +index_page="CyberChef_v${upstream_version}.html" + #================================================= # APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index d0f9e62..322ce49 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,6 +11,9 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) +upstream_version=$(ynh_app_upstream_version) +index_page="CyberChef_v${upstream_version}.html" + #================================================= # "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD, ETC...) #================================================= @@ -30,6 +33,7 @@ chown -R $app:www-data "$install_dir" #================================================= # REAPPLY SYSTEM CONFIGURATIONS #================================================= + ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=4 ynh_add_nginx_config