From 2744ab588eea2effa9d47474b17c2ae9ae6dcea7 Mon Sep 17 00:00:00 2001 From: Brienne Kordis Date: Tue, 6 Sep 2022 18:15:41 -0400 Subject: [PATCH] move exec() and file name to cfg --- wpAliases.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wpAliases.php b/wpAliases.php index 9e4d5a3..004e329 100755 --- a/wpAliases.php +++ b/wpAliases.php @@ -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);