move exec() and file name to cfg

This commit is contained in:
Brienne Kordis 2022-09-06 18:15:41 -04:00
parent b6fe91d20f
commit 2744ab588e

View File

@ -4,7 +4,6 @@
require 'getwebsites.cfg.php';
// Get password from the "pass" utility.
exec('/usr/bin/pass ls megaphone/crm/restpassword', $password);
$password = $password[0];
$headers = login($password);
@ -36,7 +35,6 @@ foreach ($websites as $website) {
ksort($websiteList);
$aliasesFile = '/etc/wp-cli.yml';
$yaml = yaml_emit_file($aliasesFile, $websiteList);
var_dump($yaml);