2021-03-24 22:49:07 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
# dependencies used by the app
|
2021-02-22 13:21:58 +01:00
|
|
|
# HACK zlib1g-dev libjpeg-dev (libwebp-dev optional but necessary for stickers) are necessary to compile / install pillow
|
2021-12-29 17:35:17 +01:00
|
|
|
pkg_dependencies="postgresql python3 zlib1g-dev libjpeg-dev libwebp-dev python3-venv libpq-dev libffi-dev"
|
2021-03-24 22:49:07 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2021-04-05 15:20:06 +02:00
|
|
|
write_bridge_config () {
|
|
|
|
domain="https://$domain"
|
|
|
|
if [ "$botusers" = "local" ]
|
|
|
|
then
|
|
|
|
botusers="$server_name"
|
|
|
|
fi
|
|
|
|
verify_server_ssl_certificates="true"
|
|
|
|
matrix_server_supports_asmux="false"
|
|
|
|
log_filename="/var/log/$app/$app.log"
|
|
|
|
log_level="error"
|
|
|
|
ynh_add_config --template="config.yaml" --destination="$mautrix_config_path"
|
|
|
|
}
|
|
|
|
|
2021-03-24 22:49:07 +01:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|