mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
Fix config file format, install script and updater.sh old values
This commit is contained in:
parent
eca4af42b1
commit
698fa28c2a
3 changed files with 10 additions and 15 deletions
8
.github/workflows/updater.sh
vendored
8
.github/workflows/updater.sh
vendored
|
@ -148,12 +148,8 @@ yq -i '.bridge.encryption.require = "__ENCRYPTION_REQUIRE__"' $configFilePath
|
||||||
yq -i 'with(.bridge.permissions ; . = { "__LISTRELAY__": "relay", "__LISTUSER__": "user", "__LISTADMIN__": "admin" } | ... style="double")' $configFilePath
|
yq -i 'with(.bridge.permissions ; . = { "__LISTRELAY__": "relay", "__LISTUSER__": "user", "__LISTADMIN__": "admin" } | ... style="double")' $configFilePath
|
||||||
yq -i '.bridge.relay.enabled = "__ENABLE_RELAYBOT__"' $configFilePath
|
yq -i '.bridge.relay.enabled = "__ENABLE_RELAYBOT__"' $configFilePath
|
||||||
yq -i '.bridge.relay.admin_only = "__ADMIN_ONLY__"' $configFilePath
|
yq -i '.bridge.relay.admin_only = "__ADMIN_ONLY__"' $configFilePath
|
||||||
yq -i '.logging.directory = "/var/log/__APP__"' $configFilePath
|
yq -i '.logging.writers.filename = "/var/log/__APP__"' $configFilePath
|
||||||
yq -i '.logging.print_level = "__PRINT_LEVEL__"' $configFilePath
|
yq -i '.logging.min_level = "__PRINT_LEVEL__"' $configFilePath
|
||||||
|
|
||||||
## Keep some default options turned off
|
|
||||||
yq -i '.logging.file_name_format = "null"' $configFilePath
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -414,9 +414,9 @@ bridge:
|
||||||
# domain - All users on that homeserver
|
# domain - All users on that homeserver
|
||||||
# mxid - Specific user
|
# mxid - Specific user
|
||||||
permissions:
|
permissions:
|
||||||
"__LISTRELAY__": "relay"
|
"__LISTRELAY__": relay
|
||||||
"__LISTUSER__": "user"
|
"__LISTUSER__": user
|
||||||
"__LISTADMIN__": "admin"
|
"__LISTADMIN__": admin
|
||||||
# Settings for relay mode
|
# Settings for relay mode
|
||||||
relay:
|
relay:
|
||||||
# Whether relay mode should be allowed. If allowed, `!wa set-relay` can be used to turn any
|
# Whether relay mode should be allowed. If allowed, `!wa set-relay` can be used to turn any
|
||||||
|
@ -436,16 +436,13 @@ bridge:
|
||||||
m.location: "<b>{{ .Sender.Displayname }}</b> sent a location"
|
m.location: "<b>{{ .Sender.Displayname }}</b> sent a location"
|
||||||
# Logging config. See https://github.com/tulir/zeroconfig for details.
|
# Logging config. See https://github.com/tulir/zeroconfig for details.
|
||||||
logging:
|
logging:
|
||||||
min_level: debug
|
min_level: __PRINT_LEVEL__
|
||||||
writers:
|
writers:
|
||||||
- type: stdout
|
- type: stdout
|
||||||
format: pretty-colored
|
format: pretty-colored
|
||||||
- type: file
|
- type: file
|
||||||
format: json
|
format: json
|
||||||
filename: ./logs/mautrix-whatsapp.log
|
filename: /var/log/__APP__
|
||||||
max_size: 100
|
max_size: 100
|
||||||
max_backups: 10
|
max_backups: 10
|
||||||
compress: true
|
compress: true
|
||||||
directory: /var/log/__APP__
|
|
||||||
print_level: __PRINT_LEVEL__
|
|
||||||
file_name_format: "null"
|
|
||||||
|
|
|
@ -183,8 +183,10 @@ ynh_add_config --template="../conf/config.yaml" --destination="$final_path/confi
|
||||||
chmod 400 "$final_path/config.yaml"
|
chmod 400 "$final_path/config.yaml"
|
||||||
chown $app:$app "$final_path/config.yaml"
|
chown $app:$app "$final_path/config.yaml"
|
||||||
|
|
||||||
# This call allows to set multiple users during install question "botusers" specifying them separated by a comma
|
# This calls allows to set multiple users during install question "botusers" specifying them separated by a comma
|
||||||
set__listuser
|
set__listuser
|
||||||
|
set__listrelay
|
||||||
|
set__listadmin
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REGISTER SYNAPSE APP-SERVICE
|
# REGISTER SYNAPSE APP-SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue