Skip to content

small issues when configuring FreshRSS from scratch with CLI #1445

@oupala

Description

@oupala

There is some more issues when configuring FreshRSS from sratch with CLI.

  1. I can't set the general language for FreshRSS at install time. As a consequence, login page is always in english where I'd like to set ot to another language.

  2. I can't reuse the login used at install time to create a new 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/create-user.php --user myuser --password 'myuserpass' --api-password 'api_password' --language fr --email [email protected] --token 'longRandomString'
FreshRSS error: username already taken “myuser”
  1. Importing an opml file generates some notices:
>sudo -u www-data ./cli/import-for-user.php --user myuser --filename /somewhere/feeds_backup.opml
FreshRSS importing ZIP/OPML/JSON for user “myuser”…
PHP Notice:  Undefined offset: 0 in /home/ops/apps/FreshRSS-cli-install-sqlite/lib/Favicon/Favicon.php on line 92
PHP Notice:  Undefined offset: 0 in /home/ops/apps/FreshRSS-cli-install-sqlite/lib/Favicon/Favicon.php on line 92
PHP Notice:  Undefined offset: 0 in /home/ops/apps/FreshRSS-cli-install-sqlite/lib/Favicon/Favicon.php on line 92
Result: success
  1. There is some settings missing that we can configure on the web interface but not with CLI. Is it planned to add these settings in the futur? Is it planned to be able to set via the CLI all the settings that we can set from the web interface?

  2. An ansible playbook idempotency is mainly based on files, is there a way to tell that FreshRSS is installed or not, that a user is created or not, that an opml file has been imported? It would be great to prevent ansible from trying to reinstall FreshRSS, to recreate the user, and to reimport the opml file...

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