mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Make the notification script configurable
Add a configuration option to set the path of the notification script. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
0c599b39b0
commit
a114476e81
2 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ enable-maintenance = 1
|
|||
maintenance-exceptions = 127.0.0.1
|
||||
|
||||
[notifications]
|
||||
notify-cmd = /srv/http/aurweb/scripts/notify.py
|
||||
sendmail = /usr/bin/sendmail
|
||||
sender = notify@aur.archlinux.org
|
||||
reply-to = noreply@aur.archlinux.org
|
||||
|
|
|
@ -1282,7 +1282,7 @@ function account_set_ssh_keys($uid, $ssh_keys, $ssh_fingerprints) {
|
|||
* @return void
|
||||
*/
|
||||
function notify($params, $text='') {
|
||||
$cmd = realpath('../../scripts/notify.py');
|
||||
$cmd = config_get('notifications', 'notify-cmd');
|
||||
foreach ($params as $param) {
|
||||
$cmd .= ' ' . escapeshellarg($param);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue