2017-07-02 14:19:48 +02:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
2017-07-05 22:35:31 +02:00
|
|
|
|
2017-07-06 19:15:14 +02:00
|
|
|
foreach my $service (qw(php-fpm php56-php-fpm php70-php-fpm php71-php-fpm)){
|
2017-07-05 22:48:19 +02:00
|
|
|
service_link_enhanced($service, "S86", "7");
|
|
|
|
service_link_enhanced($service, "K16", "6");
|
|
|
|
service_link_enhanced($service, "K16", "0");
|
|
|
|
service_link_enhanced($service, "K16", "1");
|
2017-07-12 10:16:53 +02:00
|
|
|
foreach my $event qw(webapps-update share-create share-modify share-modify-server share-delete){
|
2017-07-12 10:13:16 +02:00
|
|
|
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/$service");
|
2017-07-11 19:03:24 +02:00
|
|
|
}
|
2017-07-05 22:48:19 +02:00
|
|
|
}
|
2017-07-05 22:35:31 +02:00
|
|
|
|
2017-07-05 22:48:19 +02:00
|
|
|
foreach my $file qw( /etc/php-fpm.conf
|
|
|
|
/etc/php-fpm.d/www.conf
|
2017-07-08 11:15:51 +02:00
|
|
|
/etc/php-fpm.d/shares.conf
|
2017-07-14 13:57:11 +02:00
|
|
|
/etc/php-fpm.d/custom.conf
|
2017-07-05 22:48:19 +02:00
|
|
|
/opt/remi/php56/root/etc/php-fpm.conf
|
2017-07-06 19:15:14 +02:00
|
|
|
/opt/remi/php56/root/etc/php-fpm.d/www.conf
|
2017-07-08 11:15:51 +02:00
|
|
|
/opt/remi/php56/root/etc/php-fpm.d/shares.conf
|
2017-07-14 13:57:11 +02:00
|
|
|
/opt/remi/php56/root/etc/php-fpm.d/custom.conf
|
2017-07-06 19:15:14 +02:00
|
|
|
/etc/opt/remi/php70/php-fpm.conf
|
|
|
|
/etc/opt/remi/php70/php-fpm.d/www.conf
|
2017-07-08 11:15:51 +02:00
|
|
|
/etc/opt/remi/php70/php-fpm.d/shares.conf
|
2017-07-14 13:57:11 +02:00
|
|
|
/etc/opt/remi/php70/php-fpm.d/custom.conf
|
2017-07-06 19:15:14 +02:00
|
|
|
/etc/opt/remi/php71/php-fpm.conf
|
2017-07-08 11:15:51 +02:00
|
|
|
/etc/opt/remi/php71/php-fpm.d/www.conf
|
2017-07-14 13:57:11 +02:00
|
|
|
/etc/opt/remi/php71/php-fpm.d/shares.conf
|
|
|
|
/etc/opt/remi/php71/php-fpm.d/custom.conf ){
|
2017-07-12 10:16:53 +02:00
|
|
|
templates2events($file, qw(webapps-update bootstrap-console-save share-create share-modify share-modify-server share-delete));
|
2017-07-09 21:06:29 +02:00
|
|
|
safe_symlink('/etc/e-smith/templates-default/template-begin-ini', "root/etc/e-smith/templates$file/template-begin");
|
2017-07-05 22:35:31 +02:00
|
|
|
}
|
2017-07-08 12:05:32 +02:00
|
|
|
|
2017-07-12 18:57:35 +02:00
|
|
|
safe_symlink('/etc/e-smith/templates-default/template-begin-shell', 'root/etc/e-smith/templates/etc/cron.daily/tmpwatch-php-fpm/template-begin');
|
2017-07-12 18:26:36 +02:00
|
|
|
|
2017-07-09 21:53:39 +02:00
|
|
|
foreach my $file qw( /etc/sysconfig/php-fpm
|
|
|
|
/opt/remi/php56/root/etc/sysconfig/php-fpm
|
|
|
|
/etc/opt/remi/php70/sysconfig/php-fpm
|
2017-07-12 18:55:21 +02:00
|
|
|
/etc/opt/remi/php71/sysconfig/php-fpm
|
|
|
|
/etc/logrotate.d/php-fpm ){
|
2017-07-09 21:53:39 +02:00
|
|
|
templates2events($file, qw(webapps-update bootstrap-console-save));
|
|
|
|
}
|
2017-07-08 12:22:57 +02:00
|
|
|
|
2017-07-08 12:05:32 +02:00
|
|
|
event_link("php-pool-dirs", "share-create", "90");
|
|
|
|
event_link("php-pool-dirs", "share-modify", "90");
|
|
|
|
event_link("php-pool-dirs", "share-modify-server", "90");
|
|
|
|
event_link("php-pool-dirs", "share-delete", "90");
|
2017-07-09 21:26:06 +02:00
|
|
|
|