Mashallah we got telegram now :o
This commit is contained in:
1 parent
b6094834bb
commit
581ecc8590
5 files changed
+46
-9
No files matched your search
+6
-1
@@ -53,7 +53,12 @@ async fn main() {
|
||||
let _ = std::fs::set_permissions(&data_dir, std::fs::Permissions::from_mode(0o700));
|
||||
}
|
||||
let db_path = format!("{}/labdeck.db", data_dir.trim_end_matches('/'));
|
||||
let conn = db::open(&db_path).expect("cannot open database");
|
||||
let conn = db::open(&db_path).unwrap_or_else(|e| {
|
||||
eprintln!("cannot open database {db_path}: {e}");
|
||||
eprintln!("hint: the data directory must be writable by this process.");
|
||||
eprintln!(" Docker bind mount: sudo chown 10001:10001 <dir> (or use a named volume)");
|
||||
std::process::exit(1);
|
||||
});
|
||||
|
||||
let app = Arc::new(App {
|
||||
db: Mutex::new(conn),
|
||||
|
||||
Reference in new issue
Block a user