Reload services and expand-template when modifying shares

This commit is contained in:
Daniel Berteaud 2017-07-12 10:16:53 +02:00
parent f88b75fbe0
commit 9895db690f
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ foreach my $service (qw(php-fpm php56-php-fpm php70-php-fpm php71-php-fpm)){
service_link_enhanced($service, "K16", "6");
service_link_enhanced($service, "K16", "0");
service_link_enhanced($service, "K16", "1");
foreach my $event qw(webapps-update){
foreach my $event qw(webapps-update share-create share-modify share-modify-server share-delete){
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/$service");
}
}
@ -24,7 +24,7 @@ foreach my $file qw( /etc/php-fpm.conf
/etc/opt/remi/php71/php-fpm.conf
/etc/opt/remi/php71/php-fpm.d/www.conf
/etc/opt/remi/php71/php-fpm.d/shares.conf ){
templates2events($file, qw(webapps-update bootstrap-console-save));
templates2events($file, qw(webapps-update bootstrap-console-save share-create share-modify share-modify-server share-delete));
safe_symlink('/etc/e-smith/templates-default/template-begin-ini', "root/etc/e-smith/templates$file/template-begin");
}