-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade drupal core to 9.2.0 * Updated dependencies Jun 23 2021 * fix(STN-804): caption credit views hotfix (#907) * Adjusted drush and settings for the Ace environment (#904)
- Loading branch information
Showing
145 changed files
with
3,164 additions
and
2,173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ project: | |
git: | ||
default_branch: develop-build | ||
remotes: | ||
- '[email protected]:swshumsci.git' | ||
- '[email protected]:humscigryphon.git' | ||
deploy: | ||
tag_source: false | ||
|
@@ -166,12 +165,9 @@ tests: | |
- functional | ||
directory: '${docroot}/profiles/humsci/su_humsci_profile/tests/codeception' | ||
keys_rsync: | ||
ssh: swshumsci.prod@srv-7503.devcloud.hosting.acquia.com | ||
ssh: humscigryphon.prod@web-42199.prod.hosting.acquia.com | ||
files: | ||
- /mnt/gfs/swshumsci.prod/nobackup/apikeys/ | ||
- /mnt/gfs/swshumsci.prod/secrets.settings.php | ||
- /mnt/gfs/humscigryphon.prod/nobackup/apikeys/ | ||
- /mnt/gfs/humscigryphon.prod/secrets.settings.php | ||
cloud: | ||
appId: 23a85077-2967-41a4-be22-a84c24e0f81a | ||
dev: 265866-23a85077-2967-41a4-be22-a84c24e0f81a | ||
test: 265867-23a85077-2967-41a4-be22-a84c24e0f81a | ||
prod: 265865-23a85077-2967-41a4-be22-a84c24e0f81a | ||
appId: 60ee2ebb-94f3-415d-a289-c23889ecec18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,15 +88,36 @@ public function humsciLetsEncryptAdd($environment, $options = [ | |
|
||
$primary_domain = array_shift($domains); | ||
asort($domains); | ||
$domains = "-d $primary_domain -d " . implode(' -d ', $domains); | ||
if ($domains) { | ||
$domains = "-d $primary_domain -d " . implode(' -d ', $domains); | ||
} | ||
else { | ||
$domains = "-d $primary_domain"; | ||
} | ||
|
||
$directory = "/mnt/gfs/swshumsci.$environment/files/"; | ||
$directory = "/mnt/gfs/humscigryphon.$environment/tmp"; | ||
|
||
$ssh_url = sprintf('swshumsci.%[email protected]', $environment); | ||
$ssh_url = $this->getSshUrl($environment); | ||
$command = sprintf('ssh %s "~/.acme.sh/acme.sh --issue %s -w %s --force --debug"', $ssh_url, $domains, $directory); | ||
return $this->taskExec($command)->run(); | ||
} | ||
|
||
/** | ||
* Get the ssh url based on the environment name. | ||
* | ||
* @param string $environment | ||
* Environment name: prod, test, dev. | ||
* | ||
* @return string | ||
* Ssh location. | ||
*/ | ||
protected function getSshUrl($environment) { | ||
if ($environment == 'prod') { | ||
return '[email protected]'; | ||
} | ||
return '[email protected]'; | ||
} | ||
|
||
/** | ||
* List the LetsEncrypt certificates for the environment. | ||
* | ||
|
@@ -150,7 +171,7 @@ public function updateCert($environment) { | |
$cert_name = $environment == 'test' ? 'swshumsci-stage.stanford.edu' : "swshumsci-$environment.stanford.edu"; | ||
$this->taskDeleteDir($this->getConfigValue('repo.root') . '/certs')->run(); | ||
$this->taskDrush() | ||
->drush("rsync --mode=rltDkz @default.prod:/home/swshumsci/.acme.sh/$cert_name/ @self:../certs") | ||
->drush("rsync --mode=rltDkz @default.prod:/home/humscigryphon/.acme.sh/$cert_name/ @self:../certs") | ||
->run(); | ||
|
||
$cert = file_get_contents($this->getConfigValue('repo.root') . "/certs/$cert_name.cer"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.