move exec() and file name to cfg
This commit is contained in:
		@@ -4,7 +4,6 @@
 | 
				
			|||||||
require 'getwebsites.cfg.php';
 | 
					require 'getwebsites.cfg.php';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Get password from the "pass" utility.
 | 
					// Get password from the "pass" utility.
 | 
				
			||||||
exec('/usr/bin/pass ls megaphone/crm/restpassword', $password);
 | 
					 | 
				
			||||||
$password = $password[0];
 | 
					$password = $password[0];
 | 
				
			||||||
$headers = login($password);
 | 
					$headers = login($password);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -36,7 +35,6 @@ foreach ($websites as $website) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
ksort($websiteList);
 | 
					ksort($websiteList);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$aliasesFile = '/etc/wp-cli.yml';
 | 
					 | 
				
			||||||
$yaml = yaml_emit_file($aliasesFile, $websiteList);
 | 
					$yaml = yaml_emit_file($aliasesFile, $websiteList);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var_dump($yaml);
 | 
					var_dump($yaml);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user