Add update_config.sh script
This commit is contained in:
parent
58fc01f17d
commit
bf6add3fd0
|
@ -11,7 +11,7 @@ verbs = ["reporta", "diu", "anuncia", "comenta", "informa"]
|
|||
min_length = 30
|
||||
# Set to '' to disable text response
|
||||
ack_text = "✅ Gràcies {{user}}, hem desat la teva resposta per eXOfàsia!"
|
||||
update_config_command = "sh /data/update_config.sh"
|
||||
update_config_command = "sh ./update_config.sh"
|
||||
editors = [
|
||||
'@evilham:unchat.cat',
|
||||
'@guifipedro:matrix.guifi.net',
|
||||
|
|
21
hebbot/update_config.sh
Executable file
21
hebbot/update_config.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
cd "${HEBBOT_DATA_DIR:-/data}"
|
||||
|
||||
BASE_HEBBOT_URL="${BASE_HEBBOT_URL:-https://farga.exo.cat/exo/eXOfasia/raw/branch/main/hebbot}"
|
||||
|
||||
echo "Updating config.toml ..."
|
||||
wget -nv -O config.toml "${BASE_HEBBOT_URL}/config.toml"
|
||||
|
||||
echo "Updating report_template.md..."
|
||||
wget -nv -O report_template.md "${BASE_HEBBOT_URL}/report_template.md"
|
||||
|
||||
echo "Updating section_template.md..."
|
||||
wget -nv -O section_template.md "${BASE_HEBBOT_URL}/section_template.md"
|
||||
|
||||
echo "Updating project_template.md..."
|
||||
wget -nv -O project_template.md "${BASE_HEBBOT_URL}/project_template.md"
|
||||
|
||||
echo "Updating update_config.sh ..."
|
||||
wget -nv -O update_config.sh "${BASE_HEBBOT_URL}/update_config.sh"
|
||||
|
Loading…
Reference in a new issue