This commit is contained in:
secgen server
2018-03-21 22:02:03 +00:00
2 changed files with 13 additions and 4 deletions

View File

@@ -20,6 +20,10 @@
$params += '&language='
end
-%>
curl -L <%= @https ? '-k ': '' %><%= $url_base %>
sleep 10
curl -L --data '<%= $params %>' <%= @https ? '-k ': '' %><%= $url_base %>/wp-admin/install.php?step=2
if [ ! -f /wps ]; then
curl -L <%= @https ? '-k ': '' %><%= $url_base %>
sleep 10
curl -L --data '<%= $params %>' <%= @https ? '-k ': '' %><%= $url_base %>/wp-admin/install.php?step=2
sleep 10
touch /wps
fi

View File

@@ -40,9 +40,14 @@ class wordpress_4x {
owner => 'root',
group => 'root',
ensure => present,
mode => '0755',
mode => '0700',
content => template('wordpress/wordpress_conf.sh.erb'),
}
~>
cron { 'run wordpress config script':
command => '/bin/bash /wordpress_conf.sh',
minute => [0, 5,10,15,20,25,30,35,40,45,50,55]
}
# ~>
# exec { 'run wordpress config script':
# command => '/bin/bash /tmp/wordpress_conf.sh',