main
Robert 2 years ago
parent cb9f9299d7
commit 7d17863e73
  1. 17
      app/neato.php
  2. 2
      config_files/deploy_test1.php
  3. 2
      neato_deploy.sh

@ -31,12 +31,8 @@ if ($os_like == 'debian') {
require 'OS/neato_' . ucfirst($os['id']) . '.php'; require 'OS/neato_' . ucfirst($os['id']) . '.php';
$auto = false; $auto = (in_array('-y', $argv)) ? true : false;
foreach($argv as $arg) { $mark = (in_array('-marksafe', $argv)) ? true : false;
if ($arg == "-y") {
$auto = true;
}
}
$file = $argv[1]; $file = $argv[1];
if (is_string_found($argv[1], 'http://') || is_string_found($argv[1], 'https://')) { if (is_string_found($argv[1], 'http://') || is_string_found($argv[1], 'https://')) {
@ -62,12 +58,9 @@ function do_harm_checker($shasum) {
$answer = readline("Do you wish to execute this Script, anyways!! ? "); $answer = readline("Do you wish to execute this Script, anyways!! ? ");
if ( strtolower( trim($answer) ) === "yes" ) { if ( strtolower( trim($answer) ) === "yes" ) {
echo "Okay...!" . PHP_EOL; echo "Okay...!" . PHP_EOL;
save_sha($shasum);
} else { } else {
exit(1); exit(1);
} }
} else {
save_sha($shasum);
} }
} }
} }
@ -87,8 +80,14 @@ if (file_exists($cwd . '/deploy_' . $file.'.php')) {
$check_for_harm = false; $check_for_harm = false;
} else { } else {
echo "Danger: SUM of Script has been modified!"; echo "Danger: SUM of Script has been modified!";
exit(1);
} }
} }
if ($mark) {
save_sha($shasum);
}
if ($check_for_harm) { if ($check_for_harm) {
do_harm_checker($shasum); do_harm_checker($shasum);
} }

@ -5,6 +5,8 @@ Configure::set('syslog', false);
//do_command('apache::ht_password', 'my.htpasswd', 'johnny', 'shhhh'); //do_command('apache::ht_password', 'my.htpasswd', 'johnny', 'shhhh');
force_root();
$status = do_command('php::query_module', 'gd', '8.2', 'apache2'); $status = do_command('php::query_module', 'gd', '8.2', 'apache2');
echo ($status == 0) ? 'PHP found module gd' : 'gd not found as module for PHP'; echo ($status == 0) ? 'PHP found module gd' : 'gd not found as module for PHP';

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
php -c /opt/neatoDeployments/neatoDeploy.ini -f /opt/neatoDeployments/neatoDeploy.phar $1 $2 php -c /opt/neatoDeployments/neatoDeploy.ini -f /opt/neatoDeployments/neatoDeploy.phar $@

Loading…
Cancel
Save