mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-27 20:09:07 +02:00
fix sudo: unable to resolve host warning
This commit is contained in:
@@ -394,6 +394,13 @@ fi
|
||||
|
||||
|
||||
system_tweak() {
|
||||
|
||||
server_name=$(hostname)
|
||||
|
||||
echo "127.0.0.1 $server_name
|
||||
$(cat /etc/hosts)" > /etc/hosts
|
||||
#this should address on "sudo: unable to resolve host ..." on Ubuntu , it's not issue but annoying.
|
||||
|
||||
if [[ $SERVER_OS == "CentOS" ]] ; then
|
||||
setenforce 0
|
||||
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
|
||||
|
||||
Reference in New Issue
Block a user