mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update install_pve.sh
This commit is contained in:
parent
64153d5953
commit
6f0e319b38
1 changed files with 27 additions and 27 deletions
|
@ -146,10 +146,10 @@ if [ "${hostname}" != "pve" ]; then
|
||||||
echo "::1 localhost" >> /etc/hosts
|
echo "::1 localhost" >> /etc/hosts
|
||||||
echo "Added ::1 localhost to /etc/hosts"
|
echo "Added ::1 localhost to /etc/hosts"
|
||||||
fi
|
fi
|
||||||
# if grep -q "^127\.0\.0\.1 localhost$" /etc/hosts; then
|
if grep -q "^127\.0\.1\.1" /etc/hosts; then
|
||||||
# sed -i '/^127\.0\.0\.1 localhost$/ s/^/#/' /etc/hosts
|
sed -i '/^127\.0\.1\.1/s/^/#/' /etc/hosts
|
||||||
# echo "Commented out 127.0.0.1 localhost in /etc/hosts"
|
echo "Commented out lines starting with 127.0.1.1 in /etc/hosts"
|
||||||
# fi
|
fi
|
||||||
if ! grep -q "^127\.0\.0\.1 localhost\.localdomain localhost$" /etc/hosts; then
|
if ! grep -q "^127\.0\.0\.1 localhost\.localdomain localhost$" /etc/hosts; then
|
||||||
# 127.0.1.1
|
# 127.0.1.1
|
||||||
echo "${ip} ${hostname}.localdomain ${hostname}" >> /etc/hosts
|
echo "${ip} ${hostname}.localdomain ${hostname}" >> /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue