eduMFA icon indicating copy to clipboard operation
eduMFA copied to clipboard

Update not possible because of different path in EDUMFA_ENCFILE

Open maxstaubach opened this issue 1 year ago • 1 comments

An update of edumfa is not possible if a different path is specified in EDUMFA_ENCFILE. I think the bug is in

deploy/ubuntu-server/edumfa-apache2.postinst line 44

Steps to reproduce

  1. edit /etc/edumfa/edumfa.cfg: EDUMFA_ENCFILE = '/etc/edumfa/secrets/enckey'
  2. move enckey to this path
  3. run update

Expected outcome

successful update

Actual outcome

failed update

Configuration

  • eduMFA version: 2.3.0
  • Installation method: from Ubuntu packages
  • Python version: 3.12.3
  • Operating system: ubuntu 24.04
  • Webserver: apache
  • Token database: MySQL

Log file

chmod: cannot access '/etc/edumfa/enckey': No such file or directory
dpkg: Fehler beim Bearbeiten des Paketes edumfa-apache2 (--configure):

maxstaubach avatar Dec 03 '24 07:12 maxstaubach

Mhm. That would require that we parse the config in the installation script. Could get a bit complex but let us check.

fritterhoff avatar Dec 09 '24 11:12 fritterhoff