Persist keys on container restart
All checks were successful
Deploy to VPS / deploy (push) Successful in 58s

This commit is contained in:
2025-11-06 19:51:08 +01:00
parent a3cff93eea
commit 6975532232
2 changed files with 11 additions and 6 deletions

View File

@@ -9,3 +9,8 @@ services:
cap_add: cap_add:
- SYS_CHROOT - SYS_CHROOT
restart: unless-stopped restart: unless-stopped
volumes:
- ssh-keys:/etc/ssh
volumes:
ssh-keys:

View File

@@ -12,12 +12,12 @@ use std::io::stdout;
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
enable_raw_mode()?; enable_raw_mode()?;
let (width, height) = crossterm::terminal::size()?; // let (width, height) = crossterm::terminal::size()?;
if width < 15 || height < 15 { // if width < 15 || height < 15 {
disable_raw_mode()?; // disable_raw_mode()?;
println!("Your console is too small."); // println!("Your console is too small.");
return Ok(()); // return Ok(());
} // }
let mut stdout = stdout(); let mut stdout = stdout();
execute!(stdout, EnterAlternateScreen)?; execute!(stdout, EnterAlternateScreen)?;
let backend = CrosstermBackend::new(stdout); let backend = CrosstermBackend::new(stdout);