diff --git a/birdnet-pi/rootfs/etc/cont-init.d/81-modifications.sh b/birdnet-pi/rootfs/etc/cont-init.d/81-modifications.sh index 59a7bd915..145111d51 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/81-modifications.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/81-modifications.sh @@ -96,11 +96,10 @@ if [ -n "$(bashio::addon.port "80")" ] && [ "$(bashio::addon.port "80")" != 80 ] fi # Correct systemctl path -#echo "... updating systemctl path" -#if [[ -f /helpers/systemctl3.py ]]; then -# mv /helpers/systemctl3.py /bin/systemctl -# chmod a+x /bin/systemctl -#fi +echo "... updating systemctl path" +curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/systemctl || mv /helpers/systemctl3.py /bin/systemctl +chown pi:pi /bin/systemctl +chmod a+x /bin/systemctl # Improve streamlit cache #echo "... add streamlit cache"