diff options
-rwxr-xr-x | acmeman | 2 | ||||
-rw-r--r-- | lib/App/Acmeman/Apache/Layout.pm | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -37,13 +37,13 @@ use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_version); use POSIX qw(strftime time floor); use App::Acmeman::Config; use App::Acmeman::Domain qw(:files); use Data::Dumper; use Text::ParseWords; -our $VERSION = '1.08'; +our $VERSION = '1.09'; =head1 NAME App::Acmeman - manages ACME certificates =head1 SYNOPSIS diff --git a/lib/App/Acmeman/Apache/Layout.pm b/lib/App/Acmeman/Apache/Layout.pm index 5b763a2..7cc8399 100644 --- a/lib/App/Acmeman/Apache/Layout.pm +++ b/lib/App/Acmeman/Apache/Layout.pm @@ -22,13 +22,13 @@ my %apache_layout_tab = ( '/etc/apache2/conf.d') { return $dir if -d $dir; } carp 'none of the expected configuration directories found; falling back to /etc/apache2'; return '/etc/apache2'; }, - _restart => 'service apache2 restart', + _restart => '/usr/sbin/service apache2 restart', _post_setup => sub { my ($filename) = @_; my $dir = dirname($filename); my $name = basename($filename); if ($dir eq '/etc/apache2/conf-available') { chdir('/etc/apache2/conf-enabled'); @@ -36,19 +36,19 @@ my %apache_layout_tab = ( } } }, rh => { _config_file => '/etc/httpd/conf/httpd.conf', _incdir => '/etc/httpd/conf.d', - _restart => 'service httpd restart' + _restart => '/usr/sbin/service httpd restart' }, suse => { _config_file => '/etc/apache2/httpd.conf', _test => sub { ! -f '/etc/apache2/apache2.conf' }, _incdir => '/etc/apache2/conf.d', - _restart => 'service httpd restart' + _restart => '/usr/sbin/service httpd restart' # or systemctl restart apache2.service } ); # new(NAME) # new() |