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
|
@ -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
Add a link
Reference in a new issue