Browse Source
add check if data folder is a directory
pull/2811/head
Stefan Melmuk
2 years ago
No known key found for this signature in database
GPG Key ID: 817020C608FE9C09
1 changed files with
4 additions and
0 deletions
-
src/main.rs
|
|
@ -303,6 +303,10 @@ async fn check_data_folder() { |
|
|
|
} |
|
|
|
exit(1); |
|
|
|
} |
|
|
|
if !path.is_dir() { |
|
|
|
error!("Data folder '{}' is not a directory.", data_folder); |
|
|
|
exit(1); |
|
|
|
} |
|
|
|
|
|
|
|
if is_running_in_docker() |
|
|
|
&& std::env::var("I_REALLY_WANT_VOLATILE_STORAGE").is_err() |
|
|
|