summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/config.proto1
-rw-r--r--web/lib/acctfuncs.inc.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/conf/config.proto b/conf/config.proto
index de9acdf7..2390dfa8 100644
--- a/conf/config.proto
+++ b/conf/config.proto
@@ -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
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index a2009988..a166d65c 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -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);
}