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 #########################################################################################