From 2ce8223fa793588d1e5f3e6a9a03ee4d52bfdc54 Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Tue, 6 Jul 2021 14:59:30 +0200 Subject: [PATCH] [matrix-synapse] Fix typo in `$os` matches. --- type/__matrix_synapse/manifest | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/type/__matrix_synapse/manifest b/type/__matrix_synapse/manifest index bbe0461..64c7c85 100755 --- a/type/__matrix_synapse/manifest +++ b/type/__matrix_synapse/manifest @@ -19,7 +19,7 @@ # # OS-specific configuration. -os=$(cat "$__global/explorer/os") +os=$(cat "${__global:?}/explorer/os") case "$os" in debian) @@ -56,7 +56,7 @@ esac # Small helper used to get boolean values which can be used as-is in the # configuration template. get_boolean_for () { - if [ -f "$__object/parameter/${1:?}" ]; then + if [ -f "${__object:?}/parameter/${1:?}" ]; then echo 'true' else echo 'false' @@ -293,7 +293,7 @@ esac # Install OS packages. We have a bit of boilerplate to handle the debian case. synapse_req= -if [ "$os" = "Debian" ]; then +if [ "$os" = "debian" ]; then require="__apt_source/matrix-org" __package_apt "$synapse_pkg" synapse_req="__package_apt/$synapse_pkg" else @@ -302,7 +302,7 @@ else fi if [ -n "$ENABLE_LDAP_AUTH" ]; then - if [ "$os" = "Debian" ]; then + if [ "$os" = "debian" ]; then require="__apt_source/matrix-org" __package_apt "$ldap_auth_provider_pkg" else __package "$ldap_auth_provider_pkg"