Open gqqnbig opened 2 years ago
As a regular administrator, I'm following 服务器安装, which asks me to run sudo ./setup.sh. However, when I look into https://github.com/gqqnbig/shine-cluster/blob/master/setup.sh, all commands are already prefixed with sudo.
sudo ./setup.sh
sudo
I feel it's like running sudo sudo timedatectl set-timezone Asia/Macau.
sudo sudo timedatectl set-timezone Asia/Macau
Why do we need double sudo? Can one be eliminated?
As a regular administrator, I'm following 服务器安装, which asks me to run
sudo ./setup.sh
. However, when I look into https://github.com/gqqnbig/shine-cluster/blob/master/setup.sh, all commands are already prefixed withsudo
.I feel it's like running
sudo sudo timedatectl set-timezone Asia/Macau
.Why do we need double sudo? Can one be eliminated?