From 97c28d7093d54ddc2db72fd96e08dc9f277bb210 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Tue, 17 Oct 2023 11:38:32 +0530 Subject: [PATCH] specify rooms --- publapi.env | 1 + utils/signup-script-template | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publapi.env b/publapi.env index 21c24a7..0b7b13b 100644 --- a/publapi.env +++ b/publapi.env @@ -2,3 +2,4 @@ PUBLAPI_PORT=3000 PUBLAPI_NOTIFY_SHOUTRRRURL='matrix://pubnixbot:xxx@projectsegfau.lt/' PUBLAPI_EMAIL_SHOUTRRRURL='smtp://pubnix%40projectsegfau.lt:xxx@mail.projectsegfau.lt:587/?auth=Plain&fromaddress=pubnix%40projectsegfau.lt&fromname=Project+Segfault+Pubnix&subject=Your+registration+request+for+the+Project+Segfault+pubnix+has+been+sent&toaddresses=' PUBLAPI_NOTIFY_ROOMS='?rooms=!xxx:projectsegfau.lt' +PUBLAPI_NOTIFY_ROOMS2='?rooms=!xxx:projectsegfau.lt,publicroom:projectsegfau.lt' diff --git a/utils/signup-script-template b/utils/signup-script-template index 449a4d4..ef0470a 100644 --- a/utils/signup-script-template +++ b/utils/signup-script-template @@ -37,5 +37,5 @@ We hope you have enough freedom to do what you want. You are limited to 10GB of We hope you have as much fun as we did making the Pubnix! :D' \ | s-nail -vr pubnix@projectsegfau.lt -s 'Your Project Segfault Pubnix account has been created' {{email}} -source /var/publapi/publapi.env && shoutrrr send -u $PUBLAPI_NOTIFY_SHOUTRRRURL -m "Welcome new user, {{username}}!" +source /var/publapi/publapi.env && shoutrrr send -u ${PUBLAPI_NOTIFY_SHOUTRRRURL}${PUBLAPI_NOTIFY_ROOMS2} -m "Welcome new user, {{username}}!" rm -rf $0