-
Notifications
You must be signed in to change notification settings - Fork 2
/
createlinks
executable file
·114 lines (97 loc) · 2.48 KB
/
createlinks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
#
# nethcti-server3-update
#
event_templates('nethcti-server3-update', qw(
/etc/nethcti/asterisk.json
/etc/nethcti/authentication.json
/etc/nethcti/dbstatic.d/phonebook.json
/etc/nethcti/dbstatic.d/nethcti3.json
/etc/nethcti/exec_script.json
/etc/nethcti/services.json
/etc/nethcti/win_popup.json
/etc/nethcti/mailer.json
/etc/nethcti/video_conf.json
/etc/nethcti/nethcti.json
/etc/nethcti/chat.json
/etc/nethcti/phone_urls.json
/etc/httpd/conf.d/nethcti-server.conf
/etc/sysconfig/subscription
));
event_actions('nethcti-server3-update', qw(
nethcti-server-conf 00
initialize-default-databases 02
nethcti-server-astdbconfig 10
));
event_services('nethcti-server3-update', qw(
httpd reload
nethcti-server restart
));
#
# hostname-modify
#
event_templates('hostname-modify', qw(
/etc/nethcti/nethcti.json
/etc/nethcti/chat.json
/etc/nethcti/services.json
));
event_services('hostname-modify', qw(
nethcti-server restart
));
#
# trusted-networks-modify
#
event_templates('trusted-networks-modify', qw(
/etc/nethcti/authentication.json
));
event_services('trusted-networks-modify', qw(
nethcti-server reload
));
#
# publichost-modify
#
event_templates('publichost-modify', qw(
/etc/nethcti/nethcti.json
));
event_services('publichost-modify', qw(
nethcti-server reload
));
#
# post-restore-config: avoid early service startup
#
event_actions('post-restore-config', qw(
nethcti-server-maskunit 10
));
#
# nethserver-conference-save
#
event_templates('nethserver-conference-save', qw(
/etc/nethcti/video_conf.json
));
event_services('nethserver-conference-save', qw(
nethcti-server reload
));
#
# certificate-update
#
event_services('certificate-update', qw(
nethcti-server restart
));
#
# post-restore-data event
#
$event = "post-restore-data";
event_actions($event,
'nethcti-server-fix-rsync-perms' => '10',
);
#
# nethserver-subscription-save
#
$event = "nethserver-subscription-save";
event_templates($event, qw(
/etc/sysconfig/subscription
));
event_services($event, qw(
nethcti-server restart
));