Installer prevent the script from being run as root
This commit is contained in:
parent
7bb99ecc7d
commit
86cdcfafe4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user