-
Notifications
You must be signed in to change notification settings - Fork 4
/
createlinks
53 lines (41 loc) · 1.06 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
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
my $event = 'nethserver-tancredi-update';
event_templates($event, qw(
/etc/tancredi.conf
/etc/httpd/conf.d/tancredi.conf
/etc/opt/rh/rh-php73/php-fpm.d/tancredi.conf
/etc/opt/rh/rh-php56/php-fpm.d/tancredi.conf
));
event_actions($event, qw(
initialize-default-databases 00
nethserver-tancredi-conf 60
));
event_services($event ,qw(
httpd reload
rh-php56-php-fpm restart
rh-php73-php-fpm restart
));
# expand tancredi httpd template on nethserver-freepbx-httpd-save
event_templates("nethserver-freepbx-httpd-save", qw(
/etc/httpd/conf.d/tancredi.conf
));
#
# trusted-networks-modify event
#
$event = "trusted-networks-modify";
event_templates($event, qw(
/etc/httpd/conf.d/tancredi.conf
));
event_services($event, qw(
httpd reload
));
#
# nethserver-php-update event -- catch timezone changes
#
event_templates('nethserver-php-update', qw(
/etc/opt/rh/rh-php73/php-fpm.d/tancredi.conf
));
event_services('nethserver-php-update', qw(
rh-php73-php-fpm restart
));