Skip to content

turris-auth: install empty config

Michal Vasilek requested to merge bugfix/turris-auth-empty-config into develop

set-turris-auth stores the password hash in the turris-auth uci section which didn't exist unless /etc/config/turris-auth was created manually.

%: set-turris-auth
New password (input not printed!):
New password again:
Traceback (most recent call last):
  File "/usr/bin/set-turris-auth", line 33, in <module>
    sys.exit(load_entry_point('turris-auth==0.4.0', 'console_scripts', 'set-turris-auth')())
  File "/usr/lib/python3.9/site-packages/turris_auth/__main__.py", line 29, in main
  File "/usr/lib/python3.9/site-packages/turris_auth/password.py", line 13, in assign
  File "/usr/lib/python3.9/site-packages/euci/__init__.py", line 140, in set
uci.UciException: Invalid argument

Closes turris/turris-auth#11 (closed)

Merge request reports