lyulyul / shine-cluster

Simple High performance Infrastructure for Neural network Experiments
GNU General Public License v3.0
14 stars 8 forks source link

Why double sudo? #138

Open gqqnbig opened 2 years ago

gqqnbig commented 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.

I feel it's like running sudo sudo timedatectl set-timezone Asia/Macau.

Why do we need double sudo? Can one be eliminated?