docker-wagtail-develop icon indicating copy to clipboard operation
docker-wagtail-develop copied to clipboard

Fix setup.sh to run on linux

Open SummerSeaSun opened this issue 1 year ago • 2 comments

To run install script on Linux Debian 12 need to be edited with:

sed -i -e "s/\\r//g" ../setup.sh

SummerSeaSun avatar Jun 21 '23 06:06 SummerSeaSun

Can you run that on the setup.sh script and submit as a PR here?

saevarom avatar Jun 21 '23 08:06 saevarom

Thanks for the reply I'm trying to do that but something wrong is happening:

git reset --hard  
HEAD ora si trova a 9b6e9c9 Enclose strings in quotes to avoid syntax errors in YAML parsing, specifically the error yaml: line 20: mapping values are not allowed in this context (#33)

Now retry and fail install:

./setup.sh 
/usr/bin/env: "bash\r": File or directory doesn't exist
/usr/bin/env: use -[v]S to pass options in shebang lines

Now fix and install is started correctly:

sed -i -e "s/\\r//g"  ./setup.sh

./setup.sh 
Directory bakerydemo already exists, skipping...
Directory wagtail already exists, skipping...
Directory libs/django-modelcluster already exists, skipping...
Directory libs/Willow already exists, skipping...

Then git detect an edit:

$git status
Sul branch master
Il tuo branch è aggiornato rispetto a 'origin/master'.

Modifiche non nell'area di staging per il commit:
  (usa "git add <file>..." per aggiornare gli elementi di cui sarà eseguito il commit)
  (usa "git restore <file>..." per scartare le modifiche nella directory di lavoro)
	modificato:             setup.sh


But won't commit it says branch is already updated :

$git commit -a

Sul branch master
Il tuo branch è aggiornato rispetto a 'origin/master'. 

git version 2.39.2

SummerSeaSun avatar Jul 07 '23 13:07 SummerSeaSun