From 49a5cf774faa4c73115811cb1fc25c7ed00957fe Mon Sep 17 00:00:00 2001 From: Vague Rabbit Date: Fri, 5 Feb 2021 19:02:55 -0800 Subject: [PATCH] ready for test #77 --- deploy-saleor.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy-saleor.sh b/deploy-saleor.sh index 3f80e3e..733167d 100644 --- a/deploy-saleor.sh +++ b/deploy-saleor.sh @@ -442,7 +442,13 @@ wait #sudo -u $UN cp $HD/django/saleor/asgi.py $HD/saleor/saleor/ #sudo -u $UN cp $HD/django/saleor/wsgi.py $HD/saleor/saleor/ sudo -u $UN cp $HD/saleor/saleor/wsgi/__init__.py $HD/saleor/saleor/wsgi.py -sudo -u $UN mkdir $HD/run +if [ ! -d "$HD/run" ]; then + sudo -u $UN mkdir $HD/run +else + if [ -f "$HD/run/saleor.sock" ]; then + sudo rm $HD/run/saleor.sock + fi +fi #########################################################################################