1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00

Update scripts/install: workaround for nginx endpoint

This commit is contained in:
Alexandre Aubin 2023-12-18 23:37:05 +01:00 committed by GitHub
parent f19c69c4ce
commit fb98b38403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
#=================================================