Add links to notify commands

This commit is contained in:
Squidly271
2020-09-20 07:18:07 -04:00
parent bc5cc72cd2
commit 5d7643134d
7 changed files with 28 additions and 28 deletions
@@ -45,7 +45,7 @@ foreach (glob("/$tmp/lang-*.xml", GLOB_NOSORT) as $file) {
$event = str_replace("'","'",_("Language")." - $lang [$new]");
$subject = str_replace("'","'",sprintf(_("Notice [%s] - Version update %s"),$server,$new));
$description = str_replace("'","'",sprintf(_("A new version of %s is available"),$lang));
exec("$notify -e ".escapeshellarg($event)." -s ".escapeshellarg($subject)." -d ".escapeshellarg($description)." -i ".escapeshellarg("normal $output")." -x");
exec("$notify -e ".escapeshellarg($event)." -s ".escapeshellarg($subject)." -d ".escapeshellarg($description)." -i ".escapeshellarg("normal $output")." -l '/Apps' -x");
}
}
exit(0);
@@ -49,7 +49,7 @@ foreach (glob("/$tmp/*.plg", GLOB_NOSORT) as $file) {
$event = str_replace("'","'",_("Plugin")." - $name [$new]");
$subject = str_replace("'","'",sprintf(_("Notice [%s] - Version update %s"),$server,$new));
$description = str_replace("'","'",sprintf(_("A new version of %s is available"),$name));
exec("$notify -e ".escapeshellarg($event)." -s ".escapeshellarg($subject)." -d ".escapeshellarg($description)." -i ".escapeshellarg("normal $output")." -x");
exec("$notify -e ".escapeshellarg($event)." -s ".escapeshellarg($subject)." -d ".escapeshellarg($description)." -i ".escapeshellarg("normal $output")." -l '/Plugins' -x");
}
}
exit(0);
@@ -37,7 +37,7 @@ foreach ($builtin as $name) {
$new = plugin('version', $file);
// silently suppress bad download of PLG file
if (version_compare($new,$old,'>')) {
exec("$notify -e ".escapeshellarg("System - $name [$new]")." -s ".escapeshellarg("Notice [$server] - Version update $new")." -d ".escapeshellarg("A new version of $name is available")." -i ".escapeshellarg("normal $output")." -x");
exec("$notify -e ".escapeshellarg("System - $name [$new]")." -s ".escapeshellarg("Notice [$server] - Version update $new")." -d ".escapeshellarg("A new version of $name is available")." -i ".escapeshellarg("normal $output")." -l '/Tools/Update' -x");
}
}
exit(0);