Merge branch 'web_merge' of http://github.com/thomashaw/secgen into web_merge

This commit is contained in:
secgen server
2018-03-22 19:31:48 +00:00
2 changed files with 8 additions and 8 deletions

View File

@@ -3,6 +3,6 @@ class userspice_43 {
class { 'userspice_43::install': } ~>
cron { 'run userspice config script':
command => '/bin/bash /userspice.sh',
minute => [0, 5,10,15,20,25,30,35,40,45,50,55]
minute => [0,5,10,15,20,25,30,35,40,45,50,55]
}
}

View File

@@ -1,15 +1,15 @@
#!/bin/bash
curl -L http://<%= @ip_address %>:80/index.php
sudo curl -L http://<%= @ip_address %>:80/index.php
sleep 10
curl -L http://<%= @ip_address %>:80/install/step2.php
sudo curl -L http://<%= @ip_address %>:80/install/step2.php
sleep 10
curl -L --data '<%= @step2_params %>' http://<%= @ip_address %>:80/install/step2.php
sudo curl -L --data '<%= @step2_params %>' http://<%= @ip_address %>:80/install/step2.php
sleep 10
curl -L http://<%= @ip_address %>:80/install/step3.php
sudo curl -L http://<%= @ip_address %>:80/install/step3.php
sleep 10
curl -L --referer http://<%= @ip_address %>:80/install/step3.php http://localhost:80/install/cleanup.php
sudo curl -L --referer http://<%= @ip_address %>:80/install/step3.php http://<%= @ip_address %>:80/install/cleanup.php
sleep 10
curl -L http://<%= @ip_address %>:80/users/update.php
sudo curl -L http://<%= @ip_address %>:80/users/update.php
sleep 10
curl -L http://<%= @ip_address %>:80/users/login.php
sudo curl -L http://<%= @ip_address %>:80/users/login.php
sleep 10