diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05e85486902cc8f5ce0f83bdb19266478081af7c..272c71fb0cedc99a66c904f7d234ff2f591ee154 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,7 +45,7 @@ deploy to stage:
   # WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
   - mkdir -p ~/.ssh
   - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-  - adduser --quiet --no-create-home nginx
+  - useradd --disabled-password --gecos '' nginx
   script:
   - chown nginx:nginx site -R
   - rsync -av --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_BUILD_REF_NAME/
@@ -66,7 +66,7 @@ deploy to production:
   # WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
   - mkdir -p ~/.ssh
   - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config 
-  - adduser --quiet --no-create-home nginx
+  - useradd --disabled-password --gecos '' nginx
   script:
   - chown nginx:nginx site -R
   - rsync -av --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/site/