From b8c9d87810207896347a0eab755c612b120df274 Mon Sep 17 00:00:00 2001 From: Michael Poutre Date: Tue, 5 Mar 2024 00:16:46 -0800 Subject: [PATCH] feat: Add ability for pre-start script --- scripts/entrypoint.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 2dd67c1..6390545 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -10,6 +10,18 @@ if [ ! -f "/home/runner/.download-complete" ] ; then bash /home/scripts/download.sh fi ; +if [ -f "/home/runner/scripts/pre-start.sh" ]; then + echo "########################################" + echo "Checking for pre-start script..." + echo "########################################" + + chmod +x /home/runner/scripts/pre-start.sh + bash /home/runner/scripts/pre-start.sh +else + echo "No pre-start script found. Skipping." +fi + + echo "########################################" echo "Starting ComfyUI..." echo "########################################"