diff options
author | Alexey Neyman <stilor@att.net> | 2018-09-28 18:44:48 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-09-28 18:53:55 (GMT) |
commit | 9d7c783a93dd4693a009aae5e99156c1f187acaf (patch) | |
tree | 701785c1e51328cc05da10adabcc1bee03288914 /testing/docker/common-scripts/su-as-user | |
parent | efe65615d053f29d25fdf5fe787b267e4609d9cf (diff) |
Make dockerfiles a bit more consistent
... and add Mint 19 and CentOS 6. The latter currently fails in
ctng's configure due to an old libtool; need to make libtool
optional.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'testing/docker/common-scripts/su-as-user')
-rwxr-xr-x | testing/docker/common-scripts/su-as-user | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/testing/docker/common-scripts/su-as-user b/testing/docker/common-scripts/su-as-user deleted file mode 100755 index 436eb54..0000000 --- a/testing/docker/common-scripts/su-as-user +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -usr=$1 -uid=$2 -grp=$3 -gid=$4 -shift 4 - -groupadd -g ${gid} ${grp} -useradd -d /home/${usr} -m -g ${gid} -u ${uid} ${usr} -rm -f /home/${usr}/src -ln -sf /src /home/${usr}/src -if [ -z "$*" ]; then - exec su -l ${usr} -else - exec su -l -c "/bin/bash -c '$*'" ${usr} -fi |