nix disable check phase, fix incomplete/failed write in proxy mode, add FML support, rename executable to dmm, image tag specific to servers, config folder from env,
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
use std::env;
|
||||
|
||||
pub struct Config {
|
||||
pub config_path: String,
|
||||
pub docker_image: String,
|
||||
@ -6,8 +8,8 @@ pub struct Config {
|
||||
impl Config {
|
||||
pub fn load() -> Self {
|
||||
Self {
|
||||
config_path: "/home/tom/desktop/rust/yo_mama/servers".to_string(), // that's my program I do what I want
|
||||
docker_image: "itzg/minecraft-server".to_string()
|
||||
config_path: env::var("DMM_CONFIG_PATH").unwrap_or_else(|_| "/raid/mc_servers".to_string()),
|
||||
docker_image: "itzg/minecraft-server".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user