Make Makefile work across Linux distros, and fix line-feed annoyances when setting up.. and more
I am running HLOS on Debian 10.3, and printf "..."
really hates the colors supposed to be set in the xterm_256 terminal.
There are two ways to fix this: Use single quotes '', or use tput. tput is quite ubiquitous, and also makes the file a little more readable.
In addition, there was this "sed, grep not authorized" caused by the 0.7 migration script migrate_vault.sh
. first of all this attempted to decrypt the vault on a fresh install, which causes a not-so-encouraging error message to happen, and ever after that cause the "not authorized" messages.
So I fixed that too, by determining if the vault is encrypted, and only then decrypt it. The migration comands have to run as sudo, because the vault is only root accessible.
I added to the docker-helper a check for the .holmelabos_password file as well, because vault operations will cease to work if this file is missing.