fixed a bug where the postinstall script would fail, if "raspi-config" is not installed on the system

This commit is contained in:
Joel Klimont 2022-11-19 01:42:11 +01:00
parent f03df1b3b3
commit 13eefdceb1

View file

@ -9,7 +9,7 @@ pip3 install requests flask
echo "Setting up nginx rtmp server"
sudo /etc/init.d/nginx start
sudo raspi-config nonint do_legacy 0
sudo raspi-config nonint do_legacy 0 || echo "(WARNING) raspi-config not found, cannot enable legacy camera support"
{
echo 'load_module "modules/ngx_rtmp_module.so";'