mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Merge pull request #34 from kemenaran/better-explain-failures
testing_process: better explain why public/private test fails
This commit is contained in:
commit
a3453177f0
1 changed files with 2 additions and 0 deletions
|
@ -686,12 +686,14 @@ CHECK_PUBLIC_PRIVATE () {
|
|||
then
|
||||
# In private mode, if curl doesn't fell on the ynh portal, it's a fail.
|
||||
if [ $yuno_portal -eq 0 ]; then
|
||||
ECHO_FORMAT "App is not private: it should redirect to the Yunohost portal, but is publicly accessible instead\n" "lyellow" clog
|
||||
yunohost_result=1
|
||||
fi
|
||||
elif [ "$install_type" = "public" ]
|
||||
then
|
||||
# In public mode, if curl fell on the ynh portal, it's a fail.
|
||||
if [ $yuno_portal -eq 1 ]; then
|
||||
ECHO_FORMAT "App page is not public: it should be publicly accessible, but redirects to the Yunohost portal instead\n" "lyellow" clog
|
||||
yunohost_result=1
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue