mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Only tweak skipped_uri for app that are private by default
This commit is contained in:
parent
8de208ac76
commit
1f020067d0
1 changed files with 6 additions and 2 deletions
|
@ -136,8 +136,12 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
|
|||
|
||||
log_small_title "Validating that the app can (or cannot) be accessed with its url..."
|
||||
|
||||
# Force a skipped_uris if public mode is not set
|
||||
if [ "$install_type" != 'private' ]
|
||||
# Force the app to public only if we're checking the public-like installs AND there's no is_public arg
|
||||
# For example, that's the case for agendav which is always installed as
|
||||
# private by default For "regular" apps (with a is_public arg) they are
|
||||
# installed as public, and we precisely want to check they are publicly
|
||||
# accessible *without* tweaking skipped_uris...
|
||||
if [ "$install_type" != 'private' ] && [[ -z "$(jq -r '.arguments.install[] | select(.name=="is_public")' $package_path/manifest.json)" ]]
|
||||
then
|
||||
log_debug "Forcing public access using a skipped_uris setting"
|
||||
# Add a skipped_uris on / for the app
|
||||
|
|
Loading…
Add table
Reference in a new issue