mirror of
https://github.com/bensuperpc/dockcross.git
synced 2026-10-25 19:25:05 +01:00
manylinux: Fixes for gid check, and chown python /man directories
This commit is contained in:
1 parent
f3fc294a08
commit
c3e5f808a6
1 file changed
+2
-2
@@ -15,7 +15,7 @@ done
|
|||||||
# This GID isn't used in the manylinux image, but just to be safe, we'll verify
|
# This GID isn't used in the manylinux image, but just to be safe, we'll verify
|
||||||
# it's still not in use during the image build.
|
# it's still not in use during the image build.
|
||||||
BUILDER_GID=200
|
BUILDER_GID=200
|
||||||
if grep "^${BUILDER_GID}:" /etc/group; then
|
if id -g "$BUILDER_GID" 2> /dev/null; then
|
||||||
echo "Error: builder gid $BUILDER_GID already exists! Aborting"
|
echo "Error: builder gid $BUILDER_GID already exists! Aborting"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -36,7 +36,7 @@ done
|
|||||||
for DIR in /opt/python/*; do
|
for DIR in /opt/python/*; do
|
||||||
mkdir $DIR/man
|
mkdir $DIR/man
|
||||||
chown -R :$BUILDER_GID $DIR/man
|
chown -R :$BUILDER_GID $DIR/man
|
||||||
chmod g+w $DIR
|
chmod g+w $DIR/man
|
||||||
done
|
done
|
||||||
for DIR in /opt/python/*/share; do
|
for DIR in /opt/python/*/share; do
|
||||||
chown -R :$BUILDER_GID $DIR
|
chown -R :$BUILDER_GID $DIR
|
||||||
|
|||||||
Reference in new issue
Block a user