From 4bad7f5bacccf92860a83a062945ba001cffb85b 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 11:10:03 +0100
Subject: [PATCH] nginx owner

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 99501e98c..aba62285a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -49,7 +49,7 @@ deploy to stage:
   #- ls site/
   #- echo $CI_BUILD_REF_NAME
   #- ssh root@"$SSH_HOST_STAGE" uptime
-  - rsync -av --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_BUILD_REF_NAME/
+  - rsync -av --delete --chown=nginx:nginx site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_BUILD_REF_NAME/
 
 deploy to production:
   environment: production
@@ -71,7 +71,7 @@ deploy to production:
   #- ls site/
   #- echo $CI_BUILD_REF_NAME
   #- ssh root@"$SSH_HOST_STAGE" uptime
-  - rsync -av --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/site/
+  - rsync -av --delete --chown=nginx:nginx site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/site/
   only:
   - master
   when: manual
-- 
GitLab