diff --git a/package_check.sh b/package_check.sh index af6701d..f91a40c 100755 --- a/package_check.sh +++ b/package_check.sh @@ -727,6 +727,10 @@ TEST_RESULTS () { global_level=0 fi + if [ $RESULT_alias_traversal -eq 1 ] + then + ECHO_FORMAT "Issue alias_traversal was detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold" + fi # Then, print the levels # Print the global level @@ -789,6 +793,7 @@ LXC_INIT initialize_values() { # Test results RESULT_witness=0 + RESULT_alias_traversal=0 RESULT_linter=0 RESULT_global_setup=0 RESULT_global_remove=0 diff --git a/sub_scripts/testing_process.sh b/sub_scripts/testing_process.sh index 9d9c71c..09da48e 100644 --- a/sub_scripts/testing_process.sh +++ b/sub_scripts/testing_process.sh @@ -360,7 +360,7 @@ CHECK_URL () { # Detect the issue alias_traversal, https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md curl --location --insecure --silent $check_domain$check_path../html/index.nginx-debian.html \ | grep "title" | grep --quiet "Welcome to nginx on Debian" \ - && ECHO_FORMAT "Issue alias_traversal detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold" + && ECHO_FORMAT "Issue alias_traversal detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold"; RESULT_alias_traversal=1 # Remove the entries in /etc/hosts for the test domain sudo sed --in-place '/#package_check/d' /etc/hosts