Skip to content

Refactor the config system once again this time for good #53

@ChillerDragon

Description

@ChillerDragon

the server.cnf is basically a dotfile and thus native bash ... duh

do not reimplement that in bash. Just source it. Then the config vars in the code also match the config vars in the file that would be cool too for fast lookup. And it allows for things like:

unix_user=teeworlds
git_root=/home/$unix_user/git

^ which would help a lot with maintenance!

It should still keep the value checks tho. No invalid cfg assignments and no invalid values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions