From cde17f164524862ada76033b028a5701be53ba19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz>
Date: Wed, 2 Nov 2016 12:40:23 +0100
Subject: [PATCH] useradd

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05e854869..272c71fb0 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/
-- 
GitLab