|
|
|
@ -31,6 +31,7 @@ export DEFAULT_COUNTRY_CODE=$(cat "$__object/parameter/default_country_code")
|
|
|
|
|
export ROOM_DIRECTORY_SERVERS=$(cat "$__object/parameter/room_directory_servers")
|
|
|
|
|
export PRIVACY_POLICY_URL=$(cat "$__object/parameter/privacy_policy_url")
|
|
|
|
|
export COOKIE_POLICY_URL=$(cat "$__object/parameter/cookie_policy_url")
|
|
|
|
|
export BRANDING_WELCOME_BACKGROUND_URL=$(cat "$__object/parameter/branding_welcome_background_url")
|
|
|
|
|
|
|
|
|
|
if [ -f "$__object/parameter/jitsi_domain" ]; then
|
|
|
|
|
export JITSI_DOMAIN=$(cat "$__object/parameter/jitsi_domain")
|
|
|
|
@ -45,14 +46,24 @@ if [ -f "$__object/parameter/branding_auth_footer_links" ]; then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -f "$__object/parameter/homepage" ]; then
|
|
|
|
|
export EMBED_HOMEPAGE=1
|
|
|
|
|
homepage=$(cat "$__object/parameter/homepage")
|
|
|
|
|
if [ -f "$homepage" ]; then
|
|
|
|
|
upload_homepage=1
|
|
|
|
|
else
|
|
|
|
|
export HOME_PAGE_URL=$homepage
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
WELCOME_PAGE_URL="welcome.html"
|
|
|
|
|
if [ -f "$__object/parameter/welcomepage" ]; then
|
|
|
|
|
export EMBED_WELCOMEPAGE=1
|
|
|
|
|
welcomepage=$(cat "$__object/parameter/welcomepage")
|
|
|
|
|
if [ -f welcomepage ]; then
|
|
|
|
|
export UPLOAD_WELCOMEPAGE=1
|
|
|
|
|
else
|
|
|
|
|
WELCOME_PAGE_URL=$welcomepage
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
export WELCOME_PAGE_URL
|
|
|
|
|
|
|
|
|
|
if [ -f "$__object/parameter/custom_asset" ]; then
|
|
|
|
|
"$__object/parameter/custom_asset" | while IFS= read -r file; do
|
|
|
|
@ -92,14 +103,14 @@ require="__directory/$INSTALL_DIR/cdist" __file "$INSTALL_DIR/cdist/config.json"
|
|
|
|
|
--mode 0664 \
|
|
|
|
|
--state present
|
|
|
|
|
|
|
|
|
|
if [ $EMBED_HOMEPAGE ]; then
|
|
|
|
|
if [ $upload_homepage ]; then
|
|
|
|
|
require="__directory/$INSTALL_DIR/cdist" __file "$INSTALL_DIR/cdist/home.html" \
|
|
|
|
|
--source "$homepage" \
|
|
|
|
|
--mode 0664 \
|
|
|
|
|
--state present
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $EMBED_WELCOMEPAGE ]; then
|
|
|
|
|
if [ $upload_welcomepage ]; then
|
|
|
|
|
require="__directory/$INSTALL_DIR/cdist" __file "$INSTALL_DIR/cdist/welcome.html" \
|
|
|
|
|
--source "$welcomepage" \
|
|
|
|
|
--mode 0664 \
|
|
|
|
|