M #: Minor improvement DH monitor & downloader

This commit is contained in:
Ruben S. Montero authored and GitHub committed 2020-05-21 14:55:10 +02:00
commit c485f1be24
2 files changed
+3 -10

No files matched your search

@@ -148,16 +148,9 @@ mkdir -p $dockerdir
mkdir -p $dockerdir/mnt
# Check distro
distro=`docker run --rm \
-e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
$docker_hub cat /etc/os-release | grep "ID_LIKE=" | cut -d= -f 2 || true`
if [ -z $distro ]; then
distro=`docker run --rm \
-e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" \
$docker_hub cat /etc/os-release | grep "^ID=.*\n" | cut -d= -f 2 || true`
fi
$docker_hub cat /etc/os-release | grep "^ID=.*\n" | cut -d= -f 2 | xargs`
if [ -z $distro ]; then
echo "Cannot identified $docker_hub distribution" 1>&2
@@ -197,7 +190,7 @@ RUN systemctl enable haveged
EOC
)
;;
centos|redhat)
centos)
terminal="/bin/bash"
contextpkg=$dockerdir/context.rpm
contexturl=$CONTEXT_URL/v$selected_tag/one-context-$selected_tag-1.el7.noarch.rpm
+1 -1
View File
@@ -55,7 +55,7 @@ CONTEXT = [
SET_HOSTNAME =\"$NAME\"
]
OS = [
KERNEL_CMD=\"console=ttyS0 reboot=k panic=1 pci=off\"
KERNEL_CMD=\"console=ttyS0 reboot=k panic=1\"
]"
#---------------------------------------------------------------------------