mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix deadlock on install (#2667)
* fix deadlock on install * improve pruning script * bump tokio
This commit is contained in:
@@ -781,7 +781,7 @@ pub struct TmpDir {
|
||||
impl TmpDir {
|
||||
pub async fn new() -> Result<Self, Error> {
|
||||
let path = Path::new("/var/tmp/startos").join(base32::encode(
|
||||
base32::Alphabet::RFC4648 { padding: false },
|
||||
base32::Alphabet::Rfc4648 { padding: false },
|
||||
&rand::random::<[u8; 8]>(),
|
||||
));
|
||||
if tokio::fs::metadata(&path).await.is_ok() {
|
||||
|
||||
Reference in New Issue
Block a user