mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-01-21 01:12:28 -05:00
add check if data folder is a directory
This commit is contained in:
parent
382e6107fe
commit
7532072d50
1 changed files with 4 additions and 0 deletions
|
@ -303,6 +303,10 @@ async fn check_data_folder() {
|
||||||
}
|
}
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
if !path.is_dir() {
|
||||||
|
error!("Data folder '{}' is not a directory.", data_folder);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if is_running_in_docker()
|
if is_running_in_docker()
|
||||||
&& std::env::var("I_REALLY_WANT_VOLATILE_STORAGE").is_err()
|
&& std::env::var("I_REALLY_WANT_VOLATILE_STORAGE").is_err()
|
||||||
|
|
Loading…
Add table
Reference in a new issue