Persist keys on container restart
All checks were successful
Deploy to VPS / deploy (push) Successful in 58s
All checks were successful
Deploy to VPS / deploy (push) Successful in 58s
This commit is contained in:
@@ -9,3 +9,8 @@ services:
|
||||
cap_add:
|
||||
- SYS_CHROOT
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ssh-keys:/etc/ssh
|
||||
|
||||
volumes:
|
||||
ssh-keys:
|
||||
|
||||
12
src/main.rs
12
src/main.rs
@@ -12,12 +12,12 @@ use std::io::stdout;
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
enable_raw_mode()?;
|
||||
let (width, height) = crossterm::terminal::size()?;
|
||||
if width < 15 || height < 15 {
|
||||
disable_raw_mode()?;
|
||||
println!("Your console is too small.");
|
||||
return Ok(());
|
||||
}
|
||||
// let (width, height) = crossterm::terminal::size()?;
|
||||
// if width < 15 || height < 15 {
|
||||
// disable_raw_mode()?;
|
||||
// println!("Your console is too small.");
|
||||
// return Ok(());
|
||||
// }
|
||||
let mut stdout = stdout();
|
||||
execute!(stdout, EnterAlternateScreen)?;
|
||||
let backend = CrosstermBackend::new(stdout);
|
||||
|
||||
Reference in New Issue
Block a user