diff --git a/common.docker b/common.docker index 47c9b64..c18c5a2 100644 --- a/common.docker +++ b/common.docker @@ -47,7 +47,6 @@ RUN \ COPY imagefiles/cmake.sh /usr/local/bin/cmake COPY imagefiles/ccmake.sh /usr/local/bin/ccmake -COPY imagefiles/sudo.sh /usr/bin/sudo RUN if [ -e /opt/python/cp35-cp35m/bin/python ]; then \ : nothing to do here since it is updated by manylinux-common/install-python-packages.sh ; \ diff --git a/imagefiles/install-gosu-binary.sh b/imagefiles/install-gosu-binary.sh index 2f43922..8c9153b 100755 --- a/imagefiles/install-gosu-binary.sh +++ b/imagefiles/install-gosu-binary.sh @@ -40,3 +40,15 @@ chmod +x /usr/local/bin/gosu # verify that the binary works gosu nobody true + + +cat << EOF >> /usr/bin/sudo +#!/bin/sh + +# Emulate the sudo command + +exec gosu root:root "\$@" + +EOF + +chmod +x /usr/bin/sudo diff --git a/imagefiles/sudo.sh b/imagefiles/sudo.sh deleted file mode 100755 index 6d86568..0000000 --- a/imagefiles/sudo.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# Emulate the sudo command - -exec gosu root:root "$@"