Installer prevent the script from being run as root

This commit is contained in:
alfrix 2022-01-26 07:20:26 -03:00
parent 7bb99ecc7d
commit 86cdcfafe4

View File

@ -116,6 +116,10 @@ start_KlipperScreen()
sudo systemctl start KlipperScreen
}
if [ "$EUID" == 0 ]
then echo_error "Plaease do not run this script as root"
exit
fi
install_packages
create_virtualenv
modify_user