From 2e9e5b43c5610c7eb39759717b9fe37dbb711975 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 14 Sep 2022 11:50:55 +0800 Subject: [PATCH 1/2] add to make commands for temp /etc/hosts and final /etc/pip3.conf looking better --- chapter07/createfiles.xml | 4 ++-- chapter08/python.xml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 314540e7e..ca7de3802 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -48,8 +48,8 @@ as well: cat > /etc/hosts << EOF -127.0.0.1 localhost $(hostname) -::1 localhost +127.0.0.1 localhost $(hostname) +::1 localhost EOF In order for user root to be diff --git a/chapter08/python.xml b/chapter08/python.xml index 0f50bf6ef..b03817629 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -116,10 +116,10 @@ well. If desired, suppress these warnings by running the following commands: - cat > /etc/pip.conf << EOF -[global] +cat > /etc/pip.conf << EOF +[global] root-user-action = ignore -disable-pip-version-check = true +disable-pip-version-check = true EOF