From 68ee3360278291b80597909f49683fdf284bb307 Mon Sep 17 00:00:00 2001 From: bobmagicii Date: Tue, 15 Oct 2024 07:07:25 +0000 Subject: [PATCH] thusfar --- bin/codeserver.atl | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bin/codeserver.atl b/bin/codeserver.atl index af931c9..7488831 100644 --- a/bin/codeserver.atl +++ b/bin/codeserver.atl @@ -443,13 +443,29 @@ extends Atlantis\TerminalApp { 'disable-workspace-trust' => 'true' ]); + if($CertFile !== static::DefaultCertFile) { + $this->PrintLn($this->FormatHeaderPoint( + 'Enabling SSL...', + $this->Theme::Muted + )); + $this->PrintLn($this->FormatHeaderPoint( + sprintf('Cert: %s', Common\Filesystem\Util::Basename($CertFile, 2)), + $this->Theme::Muted + )); + $this->PrintLn($this->FormatHeaderPoint( + sprintf('Key: %s', Common\Filesystem\Util::Basename($CertFile, 2)), + $this->Theme::Muted + )); + } + $Buffer = new Common\Overbuffer; $Buffer->Exec(fn() => $Config->EachKeyValue( fn(string $K, string $V) => printf('%s: %s%s', $K, $V, PHP_EOL) )); - file_put_contents($ConfFile, $Buffer->Get()); + Common\Filesystem\Util::TryToWriteFile($ConfFile, $Buffer->Get()); + $this->PrintOK(); return; }