Leaner systemctl update

This commit is contained in:
alexbelgium
2025-05-28 09:40:37 +02:00
parent 244bc04c9e
commit 1891a63bf0
5 changed files with 23 additions and 6902 deletions

View File

@@ -30,7 +30,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \
PYTHON_VIRTUAL_ENV="/home/pi/BirdNET-Pi/birdnet/bin/python3" \
my_dir=/home/pi/BirdNET-Pi/scripts \
LANGUAGE=en_US:en
# Global LSIO modifications
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config"
@@ -44,9 +44,15 @@ RUN \
apt-get update -y && apt-get install curl gcc python3-dev git jq sudo php-mbstring procps -y && \
\
# Correct for systemctl
curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/systemctl && \
curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /helpers/systemctl && \
cp -rf /helpers/systemctl /bin/systemctl && \
chmod a+x /bin/systemctl && \
\
# Correct for journalctl
curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/journalctl3.py -o /helpers/journalctl && \
cp -rf /helpers/journalctl /bin/journalctl && \
chmod a+x /bin/journalctl && \
\
# Change user to pi and create /home/pi
echo "setting users" && \
if id abc >/dev/null 2>&1; then groupmod -o -g 101 abc && usermod -o -u 101 abc; fi && \