From d16a54edd69f82158ae7ffe5669618db33a01ac7 Mon Sep 17 00:00:00 2001 From: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Date: Wed, 1 May 2024 14:11:38 +0200 Subject: [PATCH] fix: use LF as line breaks for Docker entrypoint.sh (#2843) adjusted for Linux again, see https://github.com/lllyasviel/Fooocus/discussions/2836 --- entrypoint.sh | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d0dba09c..57b06c6b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,33 +1 @@ -#!/bin/bash - -ORIGINALDIR=/content/app -# Use predefined DATADIR if it is defined -[[ x"${DATADIR}" == "x" ]] && DATADIR=/content/data - -# Make persistent dir from original dir -function mklink () { - mkdir -p $DATADIR/$1 - ln -s $DATADIR/$1 $ORIGINALDIR -} - -# Copy old files from import dir -function import () { - (test -d /import/$1 && cd /import/$1 && cp -Rpn . $DATADIR/$1/) -} - -cd $ORIGINALDIR - -# models -mklink models -# Copy original files -(cd $ORIGINALDIR/models.org && cp -Rpn . $ORIGINALDIR/models/) -# Import old files -import models - -# outputs -mklink outputs -# Import old files -import outputs - -# Start application -python launch.py $* +#!/bin/bash ORIGINALDIR=/content/app # Use predefined DATADIR if it is defined [[ x"${DATADIR}" == "x" ]] && DATADIR=/content/data # Make persistent dir from original dir function mklink () { mkdir -p $DATADIR/$1 ln -s $DATADIR/$1 $ORIGINALDIR } # Copy old files from import dir function import () { (test -d /import/$1 && cd /import/$1 && cp -Rpn . $DATADIR/$1/) } cd $ORIGINALDIR # models mklink models # Copy original files (cd $ORIGINALDIR/models.org && cp -Rpn . $ORIGINALDIR/models/) # Import old files import models # outputs mklink outputs # Import old files import outputs # Start application python launch.py $* \ No newline at end of file