Skip to content
Snippets Groups Projects
Commit cde17f16 authored by David Hrbáč's avatar David Hrbáč
Browse files

useradd

parent c0bb7449
No related branches found
No related tags found
No related merge requests found
......@@ -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/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment