I’m scripting the deployment of new Mattermost instances (mattermost_ynh/install at master · YunoHost-Apps/mattermost_ynh · GitHub), and I’m trying to create the first user of the server.
So I do
bin/mmctl user create --email $email --username=$admin --password '$password' --locale $language --system-admin
But it fails with:
Error: cannot read user credentials, maybe you need to use login first
The thing is, I can’t authenticate, as I didn’t create any user yet.
Is it possible to create the first user of the system using mmctl?
(And otherwise, is it wise to open an issue for this?)