/[smeserver]/rpms/e-smith-domains/sme10/e-smith-domains-2.6.0-bz10115.patch
ViewVC logotype

Contents of /rpms/e-smith-domains/sme10/e-smith-domains-2.6.0-bz10115.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Apr 7 20:26:20 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: e-smith-domains-2_6_0-6_el7_sme, e-smith-domains-2_6_0-5_el7_sme, HEAD
Error occurred while calculating annotation data.
* Wed Apr 07 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-5.sme
- setup dns services on domain creation and other events [SME: 10115]

1 diff -Nur --no-dereference e-smith-domains-2.6.0.old/createlinks e-smith-domains-2.6.0/createlinks
2 --- e-smith-domains-2.6.0.old/createlinks 2021-04-07 16:14:09.482000000 -0400
3 +++ e-smith-domains-2.6.0/createlinks 2021-04-07 16:19:39.977000000 -0400
4 @@ -16,6 +16,12 @@
5 $event = "domain-create";
6
7 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/tinydns");
8 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache");
9 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder");
10 +templates2events("/var/service/dnscache/root/servers/@", $event);
11 +templates2events("/var/service/dnscache.forwarder/root/servers/@", $event);
12 +templates2events("/var/service/dnscache.forwarder/config", $event);
13 +templates2events("/home/e-smith/ssl.pem/pem", $event);
14
15 #--------------------------------------------------
16 # actions for domain-delete event
17 @@ -24,6 +30,12 @@
18 $event = "domain-delete";
19
20 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/tinydns");
21 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache");
22 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder");
23 +templates2events("/var/service/dnscache/root/servers/@", $event);
24 +templates2events("/var/service/dnscache.forwarder/root/servers/@", $event);
25 +templates2events("/var/service/dnscache.forwarder/config", $event);
26 +templates2events("/home/e-smith/ssl.pem/pem", $event);
27
28 #--------------------------------------------------
29 # actions for domain-modify event
30 @@ -33,6 +45,11 @@
31
32 templates2events("/home/e-smith/ssl.pem/pem", $event);
33 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/tinydns");
34 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache");
35 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder");
36 +templates2events("/var/service/dnscache/root/servers/@", $event);
37 +templates2events("/var/service/dnscache.forwarder/root/servers/@", $event);
38 +templates2events("/var/service/dnscache.forwarder/config", $event);
39
40 #--------------------------------------------------
41 # actions for e-smith-domains-update event
42 @@ -42,4 +59,9 @@
43
44 templates2events("/home/e-smith/ssl.pem/pem", $event);
45 safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/tinydns");
46 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache");
47 +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/dnscache.forwarder");
48 +templates2events("/var/service/dnscache/root/servers/@", $event);
49 +templates2events("/var/service/dnscache.forwarder/root/servers/@", $event);
50 +templates2events("/var/service/dnscache.forwarder/config", $event);
51

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed