[Fix] Set permission for deployer to access to runner home dir

This commit is contained in:
samuel 2023-05-03 14:55:11 +02:00
parent c02759b511
commit 5f73a1d0ed
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ if ! id %{name}-runner; then
--groups %{name}-git-runner,%{name}-runner-deployer \ --groups %{name}-git-runner,%{name}-runner-deployer \
--gid %{name}-runner-deployer \ --gid %{name}-runner-deployer \
%{name}-runner %{name}-runner
chmod 710 /home/%{name}-runner
runuser --login %{name}-runner runuser --login %{name}-runner
runuser --user %{name}-runner -- git config \ runuser --user %{name}-runner -- git config \
--global user.email %{name}-runner@netoik.io --global user.email %{name}-runner@netoik.io