brewpi-remix/brewpi-tools-rmx

Python Error in Bootstrap

Closed this issue · 0 comments

During the beginning of the bootstrap:

Press any key when you are ready to proceed.
main: line 334: python: command not found

This is a result of checking the hashed password with python rather than python3:

match=$(python -c 'import crypt; print crypt.crypt("'"raspberry"'", "$6$'${salt}'")')

That line needs to change to:

match=$(python3 -c 'import crypt; print(crypt.crypt("'"raspberry"'", "$6$'${salt}'"))')