From a94d800aedbfa4598eed6dc7ad32dea0942b5a66 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis <maniack_crudelis@yahoo.fr> Date: Wed, 14 Dec 2016 23:59:43 +0100 Subject: [PATCH] =?UTF-8?q?Force=20l'acc=C3=A8s=20public=20sur=20les=20app?= =?UTF-8?q?=20priv=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sub_scripts/testing_process.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sub_scripts/testing_process.sh b/sub_scripts/testing_process.sh index 4140d7e..3f26134 100755 --- a/sub_scripts/testing_process.sh +++ b/sub_scripts/testing_process.sh @@ -45,6 +45,12 @@ CHECK_URL () { if [ "$use_curl" -eq 1 ] then ECHO_FORMAT "\nAccès par l'url...\n" "white" "bold" + if [ "$MANIFEST_PUBLIC" == "null" ] + then # Si la clé du manifest pour l'accès public n'a pas été trouvé, on suppose une app sans accès public + LXC_START "sudo yunohost app setting \"$APPID\" skipped_uris -v \"/\"" # Force un skipped_uris à la racine pour forcer un accès public. + LXC_START "sudo yunohost app ssowatconf" + ECHO_FORMAT "Accès public forcé pour le test d'accès par url.\n" "lyellow" "bold" + fi if [ "$no_lxc" -eq 0 ]; then IP_CURL="$(cat "$script_dir/sub_scripts/lxc_build.sh" | grep PLAGE_IP= | cut -d '"' -f2).2" else