tape: create tmp dirs early at server startup

This commit is contained in:
Dietmar Maurer
2021-02-19 17:49:50 +01:00
parent aca4c2b5a9
commit cd44fb8d84
4 changed files with 49 additions and 11 deletions

View File

@ -39,6 +39,8 @@ async fn run() -> Result<(), Error> {
proxmox_backup::rrd::create_rrdb_dir()?;
proxmox_backup::server::jobstate::create_jobstate_dir()?;
proxmox_backup::tape::create_tape_status_dir()?;
proxmox_backup::tape::create_drive_state_dir()?;
proxmox_backup::tape::create_changer_state_dir()?;
if let Err(err) = generate_auth_key() {
bail!("unable to generate auth key - {}", err);