| 1 | package App::Acmeman::Apache::Layout::suse; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use Carp; | ||
| 5 | use parent 'App::Acmeman::Apache::Layout'; | ||
| 6 | |||
| 7 | our $PRIORITY = 40; | ||
| 8 | |||
| 9 | sub new { | ||
| 10 | my $class = shift; | ||
| 11 | my $ap = shift; | ||
| 12 | |||
| 13 | if ($ap->server_config eq '/etc/apache2/httpd.conf' | ||
| 14 | && ! -f '/etc/apache2/apache2.conf') { | ||
| 15 | return $class->SUPER::new($ap, | ||
| 16 | incdir => '/etc/apache2/conf.d', | ||
| 17 | restart_command => '/usr/sbin/service httpd restart' | ||
| 18 | ); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | |||
| 22 | 1; |