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:
|
cap_add:
|
||||||
- SYS_CHROOT
|
- SYS_CHROOT
|
||||||
restart: unless-stopped
|
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>> {
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user