From 7cbdb61f2c27271c5eff52d693d2743959a20387 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sat, 18 Oct 2025 19:08:02 -0500 Subject: [PATCH] Enhancement: Ensure root's .bashrc sources Dispatcharr profile scripts for interactive non-login shells. This will help when running root commands from the container cli --- docker/entrypoint.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index fd0a883d..ab048ff7 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -96,7 +96,16 @@ fi chmod +x /etc/profile.d/dispatcharr.sh -pip install django-filter +# Ensure root's .bashrc sources the profile.d scripts for interactive non-login shells +if ! grep -q "profile.d/dispatcharr.sh" /root/.bashrc 2>/dev/null; then + cat >> /root/.bashrc << 'EOF' + +# Source Dispatcharr environment variables +if [ -f /etc/profile.d/dispatcharr.sh ]; then + . /etc/profile.d/dispatcharr.sh +fi +EOF +fi # Run init scripts echo "Starting user setup..."