Skip to content

CLI: Admin user should not be listed before being actually created #1448

@oupala

Description

@oupala

When installing FreshRSS via cli, the install process creates a user whereas it should not create a user.

>sudo -u www-data ./cli/do-install.php --default_user myuser --api_enabled --db-type sqlite
FreshRSS install…
• Remember to create the default user: myuser
	./cli/create-user.php --user myuser --password 'password' --more-options
• Remember to re-apply the appropriate access rights, such as:
	sudo chown -R :www-data . && sudo chmod -R g+r . && sudo chmod -R g+w ./data/
Result: success
>sudo -u www-data ./cli/list-users.php 
myuser
>sudo -u www-data ./cli/user-info.php -h --user myuser
FreshRSS error: user not found: myuser

The user is listed but does not exist. This is a bit inconsistent.

Why not set the default user not at install time, but at user creation time ?

This make it difficult to know whether I have to really create the user or not...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions