env: seeing if I need the admin quoted

This commit is contained in:
silver 2023-07-30 06:16:03 +01:00
parent 3415792d7f
commit 4c69738122
2 changed files with 1 additions and 3 deletions

View file

@ -49,7 +49,7 @@
environment_config = { environment_config = {
# non secret ldap stuff # non secret ldap stuff
LDAP_HOST = cfg.ldap.host; LDAP_HOST = cfg.ldap.host;
LDAP_ADMIN = "'${cfg.ldap.admin}'"; LDAP_ADMIN = cfg.ldap.admin;
# basic server stuff # basic server stuff
HOME = cfg.home; HOME = cfg.home;

View file

@ -38,7 +38,6 @@ pub struct Accounts {
pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> { pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
let database = format!("{}/{}", &config.home, &config.database); let database = format!("{}/{}", &config.home, &config.database);
println!("Database: {}", database);
let pool = SqlitePoolOptions::new() let pool = SqlitePoolOptions::new()
.max_connections(5) .max_connections(5)
.connect_with(SqliteConnectOptions::from_str(&format!("sqlite://{}", database))?.create_if_missing(true)) .connect_with(SqliteConnectOptions::from_str(&format!("sqlite://{}", database))?.create_if_missing(true))
@ -173,7 +172,6 @@ pub fn get_config() -> Config {
config.mail_pass = x.trim().to_string(); config.mail_pass = x.trim().to_string();
} }
println!("{:?}", config);
config config
} }