hawshemi / Linux-Optimizer

Linux Optimizer
MIT License
587 stars 89 forks source link

Loop with ubuntu user[BUG] #22

Closed amirmohamadamini closed 1 year ago

amirmohamadamini commented 1 year ago

When i run it with this command on my server which is not root user by default, it falls in to a Loop. sudo bash< <(curl -s https://raw.githubusercontent.com/hawshemi/Linux-Optimizer/main/linux-optimizer.sh)

It give me this error and contiue showing the menu. [*] ----- Wrong input!

amirmohamadamini commented 1 year ago

If i switch to root user with sudo -i it works ok.

hawshemi commented 1 year ago

The script is updated. You should run sudo -i first and then the bash command.

Thanks for your feedback.