On Raspbian, if the Wi-Fi country code is not set, the Wi-Fi is disabled, and the script /etc/profile.d/wifi-check.sh will add a warning into every interactive shells outputs.
This can lead to ridiculous and fatal errors when the warning is included in variables generated by a command:
2024-05-12 17:38:41,349: DEBUG - + ynh_app_setting set immich psql_port '
2024-05-12 17:38:41,349: DEBUG - Wi-Fi is currently blocked by rfkill.
2024-05-12 17:38:41,350: DEBUG - Use raspi-config to set the country before use.
2024-05-12 17:38:41,350: DEBUG -
2024-05-12 17:38:41,350: DEBUG - 5433'
On Raspbian, if the Wi-Fi country code is not set, the Wi-Fi is disabled, and the script
/etc/profile.d/wifi-check.sh
will add a warning into every interactive shells outputs.This can lead to ridiculous and fatal errors when the warning is included in variables generated by a command:
cf. https://github.com/YunoHost-Apps/immich_ynh/issues/31#issuecomment-2075666816
Solution
Let's add a Diagnosis error about this.