fix path to repositories

This commit is contained in:
Praveen Arimbrathodiyil 2016-01-16 00:00:03 +05:30
parent 6db7d7c211
commit eb38b5efe4

9
debian/postinst vendored
View file

@ -30,12 +30,13 @@ case "$1" in
configure)
. /etc/gitlab/gitlab-debian.conf
. /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_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
su ${gitlab_user} -s /bin/sh -s 'mkdir -m 750 ${gitlab_home}/public/uploads'