gitlab: fix permission issue in build phase
The newer DEB packages have a setuid file, creating an error when unpacking the source during the build phase. As dpkg doesn't have a way to pass parameters to tar, dpkg is then told to just extract the filesystem tar file and that is unpacked by tar directly. Fixes #28494
This commit is contained in:
parent
cffb1fab3e
commit
fae458c5e7
@ -73,7 +73,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
mv config/gitlab.yml.example config/gitlab.yml
|
mv config/gitlab.yml.example config/gitlab.yml
|
||||||
|
|
||||||
dpkg -x ${gitlabDeb} .
|
dpkg --fsys-tarfile ${gitlabDeb} | tar -x --no-same-permissions --no-same-owner
|
||||||
mv -v opt/gitlab/embedded/service/gitlab-rails/public/assets public
|
mv -v opt/gitlab/embedded/service/gitlab-rails/public/assets public
|
||||||
rm -rf opt
|
rm -rf opt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user