-
Notifications
You must be signed in to change notification settings - Fork 0
/
createlinks
executable file
·76 lines (60 loc) · 1.65 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
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
#
# nethserver-phonebook-mysql-update
#
my $event = "nethserver-phonebook-mysql-update";
event_actions ($event , qw(
initialize-default-databases 00
nethserver-unixODBC-conf 40
nethserver-phonebook-mysql-conf 60
));
templates2events ('/etc/odbc.ini',$event);
templates2events ('/usr/share/phonebookjs/config.json',$event);
templates2events ('/usr/share/phonebookjs/config_ldaps.json',$event);
templates2events ('/etc/phonebook/destination-import.json',$event);
templates2events ('/etc/phonebookjs/fullchain.pem',$event);
event_services($event, qw(
phonebookjs restart
phonebookjss restart
));
#
# nethserver-phonebook-mysql-save
#
$event = "nethserver-phonebook-mysql-save";
event_actions ($event , qw(
nethserver-phonebook-mysql-clear 60
nethserver-phonebook-mysql-sync 70
));
event_services($event, qw(
phonebookjs try-restart
phonebookjss try-restart
));
#
# nethserver-phonebook-mysql-fwsave
#
$event = "nethserver-phonebook-mysql-fwsave";
event_actions ($event , qw(
firewall-adjust 70
));
templates2events ('/usr/share/phonebookjs/config.json',$event);
templates2events ('/usr/share/phonebookjs/config_ldaps.json',$event);
event_services($event, qw(
phonebookjs restart
phonebookjss restart
));
#
# restore-config event
#
event_actions('post-restore-config', qw(
nethserver-phonebook-mysql-fixldap 19
));
#
# Certificate-update event
#
$event = "certificate-update";
templates2events ('/etc/phonebookjs/fullchain.pem',$event);
templates2events ('/usr/share/phonebookjs/config_ldaps.json',$event);
event_services($event, qw(
phonebookjss restart
));