move public to /var/lib/gitlab
This commit is contained in:
parent
01dab416e5
commit
354d864101
4 changed files with 6 additions and 4 deletions
2
debian/gitlab.links
vendored
2
debian/gitlab.links
vendored
|
@ -1,4 +1,4 @@
|
||||||
var/lib/gitlab/uploads usr/share/gitlab/public/uploads
|
var/lib/gitlab/public usr/share/gitlab/public
|
||||||
var/log/gitlab usr/share/gitlab/log
|
var/log/gitlab usr/share/gitlab/log
|
||||||
run/gitlab usr/share/gitlab/tmp
|
run/gitlab usr/share/gitlab/tmp
|
||||||
etc/gitlab usr/share/gitlab/config
|
etc/gitlab usr/share/gitlab/config
|
||||||
|
|
1
debian/install
vendored
1
debian/install
vendored
|
@ -30,7 +30,6 @@ lib usr/share/gitlab
|
||||||
MAINTENANCE.md usr/share/gitlab
|
MAINTENANCE.md usr/share/gitlab
|
||||||
PROCESS.md usr/share/gitlab
|
PROCESS.md usr/share/gitlab
|
||||||
Procfile usr/share/gitlab
|
Procfile usr/share/gitlab
|
||||||
public usr/share/gitlab
|
|
||||||
Rakefile usr/share/gitlab
|
Rakefile usr/share/gitlab
|
||||||
README.md usr/share/gitlab
|
README.md usr/share/gitlab
|
||||||
scripts usr/share/gitlab
|
scripts usr/share/gitlab
|
||||||
|
|
5
debian/postinst
vendored
5
debian/postinst
vendored
|
@ -40,7 +40,7 @@ case "$1" in
|
||||||
. /usr/lib/gitlab/scripts/adduser.sh
|
. /usr/lib/gitlab/scripts/adduser.sh
|
||||||
|
|
||||||
gitlab_repo_path=${gitlab_data_dir}/repositories
|
gitlab_repo_path=${gitlab_data_dir}/repositories
|
||||||
gitlab_uploads_path=${gitlab_data_dir}/uploads
|
gitlab_uploads_path=${gitlab_data_dir}/public/uploads
|
||||||
|
|
||||||
# Create directories and change ownership
|
# Create directories and change ownership
|
||||||
for i in ${gitlab_repo_path} ${gitlab_uploads_path} ${gitlab_pid_path}\
|
for i in ${gitlab_repo_path} ${gitlab_uploads_path} ${gitlab_pid_path}\
|
||||||
|
@ -49,6 +49,9 @@ case "$1" in
|
||||||
chown -R ${gitlab_user}: $i
|
chown -R ${gitlab_user}: $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# nginx should be able to connect to gitlab-workhorse.socket and serve public
|
||||||
|
chown ${gitlab_user}:${nginx_user} -R ${gitlab_uploads_path}/.. ${gitlab_pid_path}
|
||||||
|
|
||||||
# Customize permissions
|
# Customize permissions
|
||||||
chmod -R ug+rwX,o-rwx ${gitlab_repo_path}/
|
chmod -R ug+rwX,o-rwx ${gitlab_repo_path}/
|
||||||
chmod -R ug-s ${gitlab_repo_path}/
|
chmod -R ug-s ${gitlab_repo_path}/
|
||||||
|
|
2
debian/upstream-file-count-check.sh
vendored
2
debian/upstream-file-count-check.sh
vendored
|
@ -1,6 +1,6 @@
|
||||||
ucount=$(ls -1 | wc -l)
|
ucount=$(ls -1 | wc -l)
|
||||||
dcount=$(cat debian/install |cut -d' ' -f1|grep -v debian |wc -l)
|
dcount=$(cat debian/install |cut -d' ' -f1|grep -v debian |wc -l)
|
||||||
ignored=7
|
ignored=8
|
||||||
if ! [ $(echo "$ucount" - "$dcount"|bc) -eq $ignored ]; then
|
if ! [ $(echo "$ucount" - "$dcount"|bc) -eq $ignored ]; then
|
||||||
echo "Found new files added by upstream and not added to debian/install"
|
echo "Found new files added by upstream and not added to debian/install"
|
||||||
echo "Add them to debian/install or adjust 'ignored=${ignored}'"
|
echo "Add them to debian/install or adjust 'ignored=${ignored}'"
|
||||||
|
|
Loading…
Reference in a new issue