aboutsummaryrefslogtreecommitdiffstats
path: root/global-config.changes
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-02 22:53:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-06-08 21:07:25 +0200
commit50d1706a067383ad68cd0b227b7b5b339f1157cb (patch)
tree2f549fdb65b008442166e5bf293e32cda52e6e20 /global-config.changes
parent8375673d93d5481cc575dcb61825eba9b08c1515 (diff)
global-functions: make Telegram notifications a modulechange-54
Diffstat (limited to 'global-config.changes')
-rw-r--r--global-config.changes2
1 files changed, 2 insertions, 0 deletions
diff --git a/global-config.changes b/global-config.changes
index 21d4941..1721ab0 100644
--- a/global-config.changes
+++ b/global-config.changes
@@ -57,6 +57,7 @@
51="Added 'ipsec-to-dns' to add DNS records for IPSec peers from mode-config.";
52="Updated Let's Encrypt trust chain to use root certificate 'ISRG Root X1'. Do not re-import the old chain!";
53="Added support to send notifications via Matrix.";
+ 54="Support for Telegram notifications moved to a module. It is installed automatically if required.";
};
# Migration steps to be applied on script updates
@@ -64,4 +65,5 @@
41=":global SendNotification; \$SendNotification (\"Migration mechanism\") (\"Congratulations!\nSuccessfully tested the new migration mechanism.\");";
47="/ certificate remove [ find where fingerprint=\"731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568\" or fingerprint=\"25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d\" ];";
52=":global CertificateDownload; :if ([ :len [ / certificate find where fingerprint=\"67add1166b020ae61b8f5fc96813c04c2aa589960796865572a3c7e737613dfd\" or fingerprint=\"96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6\" ] ] < 2) do={ \$CertificateDownload \"R3\"; }; / certificate remove [ find where fingerprint=\"0687260331a72403d909f105e69bcf0d32e1bd2493ffc6d9206d11bcd6770739\" ];";
+ 54=":global ScriptInstallUpdate; :global TelegramTokenId; :global TelegramChatId; :if ([ :len \$TelegramTokenId ] > 0 && [ :len \$TelegramChatId ] > 0) do={ \$ScriptInstallUpdate global-functions.d/notification-telegram; }";
};