change order

This commit is contained in:
jb-alvarado 2024-02-21 19:55:39 +01:00
parent 14abd7d5be
commit 1bbc986d8c
2 changed files with 7 additions and 7 deletions

View File

@ -163,18 +163,18 @@ pub fn db_path() -> Result<&'static str, Box<dyn std::error::Error>> {
}
pub fn public_path() -> PathBuf {
let path = PathBuf::from("/usr/share/ffplayout/public/");
if path.is_dir() {
return path;
}
let path = PathBuf::from("./ffplayout-frontend/.output/public/");
if cfg!(debug_assertions) && path.is_dir() {
return path;
}
let path = PathBuf::from("/usr/share/ffplayout/public/");
if path.is_dir() {
return path;
}
PathBuf::from("./public/")
}

@ -1 +1 @@
Subproject commit 8eb543ddae035e448ea0886ec1d44256de2e6f07
Subproject commit 28bcfcd1a399a9dd5363541f5f01203c7d968e18