mirror of
https://github.com/mbround18/valheim-docker.git
synced 2021-10-22 21:53:54 +03:00
Just correcting some help text (#140)
This commit is contained in:
committed by
GitHub
parent
55d03149f1
commit
ff5d3c6f0c
@@ -19,7 +19,7 @@
|
||||
| TZ | `America/Los_Angeles` | FALSE | Sets what timezone your container is running on. This is used for timestamps and cron jobs. [Click Here for which timezones are valid.](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) |
|
||||
| PUID | `1000` | FALSE | Sets the User Id of the steam user. |
|
||||
| PGID | `1000` | FALSE | Sets the Group Id of the steam user. |
|
||||
| PORT | `2456` | TRUE | Sets the port your server will listen on. Take not it will also listen on +2 (ex: 2456, 2457, 2458) |
|
||||
| PORT | `2456` | TRUE | Sets the port your server will listen on. Take note it will also listen on +2 (ex: 2456, 2457, 2458) |
|
||||
| NAME | `Valheim Docker` | TRUE | The name of your server! Make it fun and unique! |
|
||||
| WORLD | `Dedicated` | TRUE | This is used to generate the name of your world. |
|
||||
| PUBLIC | `1` | FALSE | Sets whether or not your server is public on the server list. |
|
||||
|
||||
@@ -18,7 +18,7 @@ pub fn config_file() -> ManagedFile {
|
||||
pub fn read_config(config: ManagedFile) -> ValheimArguments {
|
||||
let content = config.read();
|
||||
if content.is_empty() {
|
||||
panic!("Please initialize odin with `odin init`. See `odin init --help`")
|
||||
panic!("Please initialize odin with `odin configure`. See `odin configure --help`")
|
||||
}
|
||||
serde_json::from_str(content.as_str()).unwrap()
|
||||
}
|
||||
@@ -57,7 +57,9 @@ mod tests {
|
||||
use std::env::current_dir;
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "Please initialize odin with `odin init`. See `odin init --help`")]
|
||||
#[should_panic(
|
||||
expected = "Please initialize odin with `odin configure`. See `odin configure --help`"
|
||||
)]
|
||||
fn can_read_config_panic() {
|
||||
let mut rng = rand::thread_rng();
|
||||
let n1: u8 = rng.gen();
|
||||
|
||||
Reference in New Issue
Block a user