Create .ssh/autherized_keys as gitlab user
This commit is contained in:
parent
703dbc9023
commit
973d502ef1
1 changed files with 2 additions and 3 deletions
5
debian/gitlab.postinst
vendored
5
debian/gitlab.postinst
vendored
|
@ -93,9 +93,8 @@ case "$1" in
|
|||
# Create directories and change ownership
|
||||
echo "Creating runtime directories for gitlab..."
|
||||
# Setup ssh key file
|
||||
mkdir -p ${gitlab_data_dir}/.ssh
|
||||
touch ${gitlab_data_dir}/.ssh/authorized_keys
|
||||
chown -R ${gitlab_user}: ${gitlab_data_dir}/.ssh
|
||||
runuser -u ${gitlab_user} -- sh -c "mkdir -p ${gitlab_data_dir}/.ssh"
|
||||
runuser -u ${gitlab_user} -- sh -c "touch ${gitlab_data_dir}/.ssh/authorized_keys"
|
||||
# Create .bundle for .bundle/config
|
||||
mkdir -p ${gitlab_data_dir}/.bundle
|
||||
chown -R ${gitlab_user}: ${gitlab_data_dir}/.bundle
|
||||
|
|
Loading…
Reference in a new issue