Removed FreeBSD sysrc crap

This commit is contained in:
Tube 2023-10-22 23:29:07 +02:00
parent 9285751709
commit 17ca7a5299
1 changed files with 11 additions and 9 deletions

View File

@ -202,14 +202,15 @@ methods:
"any" usebundle => install_apache_php,
depends_on => { "apache_pkgs_installed" };
commands:
freebsd::
"/usr/sbin/sysrc"
handle => "apache_editrc",
args => "apache24_enable=yes",
inform=>"false";
debian|centos::
"/bin/true" handle => "apache_editrc",
inform => "false";
# freebsd::
# "/usr/sbin/sysrc"
# handle => "apache_editrc",
# args => "apache24_enable=yes",
# inform=>"false";
# debian|centos::
# any::
# "/bin/true" handle => "apache_editrc",
# inform => "false";
files:
"$(apache.log_dir)/."
@ -245,8 +246,9 @@ files:
classes => if_repaired(apache_changed);
services:
# apache_editrs depends
"$(apache.service_name)"
depends_on => {"apache_editrc","apache_vhost_dir_created","apache_www_dir_created","apache_main_cfg_crreated"},
depends_on => {"apache_vhost_dir_created","apache_www_dir_created","apache_main_cfg_crreated"},
service_policy => "start",
handle => "apache_running";