From fb98b384033228358888455084eb9f7b2f6c0bad Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Mon, 18 Dec 2023 23:37:05 +0100 Subject: [PATCH] Update scripts/install: workaround for nginx endpoint --- scripts/install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/install b/scripts/install index b08fe05..d99b803 100755 --- a/scripts/install +++ b/scripts/install @@ -50,6 +50,15 @@ chown -R $app:$app "$install_dir" ynh_script_progression --message="Configuring NGINX web server..." --weight=1 # Create a dedicated NGINX config +if [[ "${PACKAGE_CHECK_EXEC:-} -eq 1 ]] +then + cat << EOF > ../conf/nginx.conf +location / { + return 200 'This is a dummy page for garage, only displayed during tests on Yunohost CI' +} +EOF +fi + ynh_add_nginx_config #=================================================