fix permissions
This commit is contained in:
parent
c6218be868
commit
6941764e2a
1 changed files with 6 additions and 2 deletions
8
debian/postinst
vendored
8
debian/postinst
vendored
|
@ -33,9 +33,13 @@ case "$1" in
|
|||
mkdir -p ${gitlab_data_dir}/repositories
|
||||
chown -R ${gitlab_user}: ${gitlab_home}
|
||||
chown -R ${gitlab_user}: ${gitlab_data_dir}
|
||||
chmod -R ug+rwX,o-rwx ${gitlab_data_dir}/repositories/
|
||||
chmod -R ug-s ${gitlab_data_dir}/gitlab/repositories/
|
||||
find ${gitlab_data_dir}/repositories/ -type d -print0 | sudo xargs -0 chmod g+s
|
||||
|
||||
chown -R ${gitlab_user}: /usr/share/gitlab-shell
|
||||
sudo -u ${gitlab_user} mkdir -m 750 ${gitlab_home}/public/uploads
|
||||
sudo -u ${gitlab_user} -H "/usr/bin/git" config --global core.autocrlf "input"
|
||||
su ${gitlab_user} -s /bin/sh -s 'mkdir -m 750 ${gitlab_home}/public/uploads'
|
||||
su ${gitlab_user} -H -s /bin/sh -c 'git config --global core.autocrlf "input"'
|
||||
cd ${gitlab_home}
|
||||
# Show debconf questions
|
||||
. /usr/share/debconf/confmodule
|
||||
|
|
Loading…
Add table
Reference in a new issue