Changing settings now fails due to yq v4 docker image
Running any make set service.enable true/false
fails with the following error (Using make set ghost.enable true
as an example)
Finding key: ghost.enable
New setting: true
./set_setting.sh: line 11: [: too many arguments
Found value in file: settings/config.yml
Run 'yq --help' for usage.unknown command "yq" for "yq"
Error: unknown command "yq" for "yq"
Run 'yq --help' for usage.
Run 'yq --help' for usage.unknown command "yq" for "yq"
Encryption successful
This is due to the newest version of yq, which is used in set_settings.sh to parse the config.yml file. It is confirmed that the current version of yq is not compatible with the current syntax in use within the set_setting.sh
script. This appears to affect all fresh installs of HomeLabOS on servers/clients that do not have a pre-cached image of yq v3.
A confirmed workaround I found was to change any reference to the yq docker image in use from mikefarah/yq
to mikefarah/yq:3
. Understandably this is probably at best a hotfix, as I assume yq v3 will eventually be deprecated, as such, effort should be made to re-work the script to conform to yq v4 syntax