Summary
When I run mmctl --local config edit, saving the changes ends up in a tmp file. What do do next?
Steps to reproduce
I am using an omnibus installation.
I run mmctl --local config edit and make some changes. Once I press save in the editor, it asks to save the file in /tmp.
I can do that, but how do I then make the changes “stick”? How do I make MatterMost know that this new file is the right config file?
Expected behavior
I had expected it would save the file by replacing the old one.
mmctl config edit will pull the config out of the database and write it in a tempfile (this is the one you’re seeing) and it will then open $EDITOR for you to edit the config. Once you save the file and close the editor, the configuration will be validated and written back to the database automatically. You can think of mmctl config edit as an easy way or a text-editor interface to the config attribute in the database, so to answer your question, the changes will be persisted immediately after you saved the changes in the file and closed the editor (if they’re valid).
So I realize this thread is a bit stale, but i’ve tried everything I can find for this.
mmctl config edit changes won’t take whether I edit the local config or the server config. I was initially trying to edit the SSL parameters, but realized the new omnibus install I just did was using NGINX for reverse proxy. So eventually I figured that part out. The catch here, and I don’t know if this is a potential cause, the first time I ran mmctl config edit I was able to adjust the filepaths for the SSL certs. No change since has stuck.
Currently, I’m trying to enable plugin uploads. I manually edited the mmomni.yml per the documentation, which did save. Restarted the server. Still can’t upload plugins. I would rather not do the CLI installation. Any ideas why mmctl config edit changes aren’t being saved? I wouldn’t think that changing the plugin upload value from false to true would be an invalid change - and thus be ignored.