Improve systemctl

This commit is contained in:
Alexandre
2025-03-21 08:56:04 +01:00
committed by GitHub
parent 3dcbb241ff
commit 4ad2d967e3

View File

@@ -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"