Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve script syntax
Adam Bogdał119c7bcf1b2a
diff --git a/compose/entrypoint.sh b/compose/entrypoint.shindex 258f53087d..41daedbe3e 100755--- a/compose/entrypoint.sh+++ b/compose/entrypoint.sh@@ -2,14 +2,14 @@set -eUSER=saleor-APP_UID=`stat -c "%u" /app`+APP_UID=$(stat -c "%u" /app)export DATABASE_URL=postgres://$DB_ENV_DB_USER:$DB_ENV_DB_PASS@db/$DB_ENV_DB_NAMEexport REDIS_URL=redis://redis:6379/0-if [ $APP_UID != "0" ]; then- if [ $APP_UID != $(id -u $USER) ]; then- usermod -u $APP_UID $USER+if [ "$APP_UID" != "0" ]; then+ if [ "$APP_UID" != "$(id -u $USER)" ]; then+ usermod -u "$APP_UID" $USERfisu $USER -c "PATH=$PATH:/app/node_modules/.bin $*"fi