You can check if the fix works by installing NS8 for scratch with this command:
bash install.sh ghcr.io/nethserver/core:bug-6990
You’ve to test it with the old 2fauth module release. Look at the bug description for the command I used to reproduce the bug.
You also need to change file 2fauth-app.service to use the variable ${I2FAUTH_IMAGE}, instead of ${2FAUTH_IMAGE} which is not allowed in environment files. Note the I prepended to avoid starting the var name with a digit.
Won’t doing this change the reference image. Or does it mean for any other images in future starting with a leading number, we should append the “I” to the name of image first?
General rules want the environment variable begins with alphabetical characters. Image name rules on the contrary, allow a starting digit. The fix works around these conflicting naming rules by adding a I prefix, if the image name starts with a digit.