fix path to repositories
This commit is contained in:
parent
6db7d7c211
commit
eb38b5efe4
1 changed files with 5 additions and 4 deletions
9
debian/postinst
vendored
9
debian/postinst
vendored
|
@ -30,12 +30,13 @@ case "$1" in
|
||||||
configure)
|
configure)
|
||||||
. /etc/gitlab/gitlab-debian.conf
|
. /etc/gitlab/gitlab-debian.conf
|
||||||
. /usr/lib/gitlab/scripts/adduser.sh
|
. /usr/lib/gitlab/scripts/adduser.sh
|
||||||
mkdir -p ${gitlab_data_dir}/repositories
|
gitlab_repo_path=${gitlab_data_dir}/repositories
|
||||||
|
mkdir -p ${gitlab_repo_path}
|
||||||
|
chmod -R ug+rwX,o-rwx ${gitlab_repo_path}/
|
||||||
|
chmod -R ug-s ${gitlab_repo_path}/
|
||||||
|
find ${gitlab_repo_path}/ -type d -print0 | sudo xargs -0 chmod g+s
|
||||||
chown -R ${gitlab_user}: ${gitlab_home}
|
chown -R ${gitlab_user}: ${gitlab_home}
|
||||||
chown -R ${gitlab_user}: ${gitlab_data_dir}
|
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
|
chown -R ${gitlab_user}: /usr/share/gitlab-shell
|
||||||
su ${gitlab_user} -s /bin/sh -s 'mkdir -m 750 ${gitlab_home}/public/uploads'
|
su ${gitlab_user} -s /bin/sh -s 'mkdir -m 750 ${gitlab_home}/public/uploads'
|
||||||
|
|
Loading…
Reference in a new issue