Skip to content

Commit

Permalink
Fixed mailpit service install.
Browse files Browse the repository at this point in the history
Fixed firefox ssl certificate issue.
  • Loading branch information
uttamrabadiya committed Jul 8, 2023
1 parent 8d11419 commit b9a2f64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/Valet/Mailpit.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function install()
public function ensureInstalled()
{
if (!$this->isAvailable()) {
$this->cli->run('sudo bash < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh)');
$this->cli->runAsUser(
'curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh | bash'
);
}
}

Expand Down
6 changes: 6 additions & 0 deletions cli/Valet/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ public function trustCertificate($crtPath, $url)
$url,
$crtPath
));

$this->cli->run(sprintf(
'certutil -d $HOME/snap/firefox/common/.mozilla/firefox/*.default -A -t TC -n "%s" -i "%s"',
$url,
$crtPath
));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Create the application.
*/
Container::setInstance(new Container());
const VALET_VERSION = 'v1.6.6';
const VALET_VERSION = 'v1.6.7';

$app = new Application('ValetLinux+', VALET_VERSION);

Expand Down

0 comments on commit b9a2f64

Please sign in to comment.