This commit adapts notification sending for
- package update
- replication
- backups
to use named templates (installed in /usr/share/pve-manager/templates)
instead of passing template strings defined in code to the
notification stack.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Max Carrara <m.carrara@proxmox.com>
Reviewed-by: Max Carrara <m.carrara@proxmox.com>
24 lines
699 B
Makefile
24 lines
699 B
Makefile
NOTIFICATION_TEMPLATES= \
|
|
default/test-subject.txt.hbs \
|
|
default/test-body.txt.hbs \
|
|
default/test-body.html.hbs \
|
|
default/vzdump-subject.txt.hbs \
|
|
default/vzdump-body.txt.hbs \
|
|
default/vzdump-body.html.hbs \
|
|
default/replication-subject.txt.hbs \
|
|
default/replication-body.txt.hbs \
|
|
default/replication-body.html.hbs \
|
|
default/package-updates-subject.txt.hbs \
|
|
default/package-updates-body.txt.hbs \
|
|
default/package-updates-body.html.hbs \
|
|
|
|
all:
|
|
|
|
.PHONY: install
|
|
install:
|
|
install -dm 0755 $(DESTDIR)/usr/share/pve-manager/templates/default
|
|
$(foreach i,$(NOTIFICATION_TEMPLATES), \
|
|
install -m644 $(i) $(DESTDIR)/usr/share/pve-manager/templates/$(i) ;)
|
|
|
|
|
|
clean:
|