Only tweak skipped_uri for app that are private by default

This commit is contained in:
Alexandre Aubin 2021-01-05 15:39:46 +01:00
parent 8de208ac76
commit 1f020067d0

View file

@ -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..." 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 # Force the app to public only if we're checking the public-like installs AND there's no is_public arg
if [ "$install_type" != 'private' ] # 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 then
log_debug "Forcing public access using a skipped_uris setting" log_debug "Forcing public access using a skipped_uris setting"
# Add a skipped_uris on / for the app # Add a skipped_uris on / for the app