diff --git a/cli/Valet/Mailpit.php b/cli/Valet/Mailpit.php index 2e2015e..33ae7fb 100644 --- a/cli/Valet/Mailpit.php +++ b/cli/Valet/Mailpit.php @@ -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' + ); } } diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index 7592825..fac1dcf 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -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 + )); } /** diff --git a/cli/valet.php b/cli/valet.php index f2c76ef..ed6c37c 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -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);