Browse Source

Add $(id -g) to the bootstrap example

Moghedrin 11 years ago
parent
commit
06ca3868e5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      django/README.md
  2. 1 1
      django/content.md

+ 1 - 1
django/README.md

@@ -57,7 +57,7 @@ having to add a `Dockerfile` to your project.
 If you want to generate the scaffolding for a new Django project, you can do the
 If you want to generate the scaffolding for a new Django project, you can do the
 following:
 following:
 
 
-    docker run -it --rm --user "$(id -u)" -v "$(pwd)":/usr/src/app -w /usr/src/app django django-admin.py startproject mysite
+    docker run -it --rm --user "$(id -u):$(id -g)" -v "$(pwd)":/usr/src/app -w /usr/src/app django django-admin.py startproject mysite
 
 
 This will create a sub-directory named `mysite` inside your current directory.
 This will create a sub-directory named `mysite` inside your current directory.
 
 

+ 1 - 1
django/content.md

@@ -44,6 +44,6 @@ having to add a `Dockerfile` to your project.
 If you want to generate the scaffolding for a new Django project, you can do the
 If you want to generate the scaffolding for a new Django project, you can do the
 following:
 following:
 
 
-    docker run -it --rm --user "$(id -u)" -v "$(pwd)":/usr/src/app -w /usr/src/app django django-admin.py startproject mysite
+    docker run -it --rm --user "$(id -u):$(id -g)" -v "$(pwd)":/usr/src/app -w /usr/src/app django django-admin.py startproject mysite
 
 
 This will create a sub-directory named `mysite` inside your current directory.
 This will create a sub-directory named `mysite` inside your current directory.