Makes sure we remove php pool dirs on share delete

tags/0.0.1_0.fc26_el5
Daniel Berteaud 7 years ago
parent 9649dd4222
commit 12527c1508
  1. 2
      root/etc/e-smith/events/actions/php-pool-dirs

@ -18,7 +18,7 @@ die "$pool not found in the account database\n" unless $acc;
my $dyn = $acc->prop('DynamicContent') || 'disabled'; my $dyn = $acc->prop('DynamicContent') || 'disabled';
if ($acc =~ m/^enabled|on|1|yes$/){ if ($acc =~ m/^enabled|on|1|yes$/ && $event ne 'share-delete'){
make_path( qw( /var/log/php/$pool make_path( qw( /var/log/php/$pool
/var/lib/php/$pool/session /var/lib/php/$pool/session
/var/lib/php/$pool/wsdlcache /var/lib/php/$pool/wsdlcache

Loading…
Cancel
Save