test root user

pull/43/head
necro-nemesis 2 years ago committed by GitHub
parent 889d96cbef
commit 22d08bce35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,13 @@ UPDATE_URL="https://raw.githubusercontent.com/necro-nemesis/LabyrinthAP/master/"
wget -q ${UPDATE_URL}/installers/common.sh -O /tmp/raspapcommon.sh
source /tmp/raspapcommon.sh && rm -f /tmp/raspapcommon.sh
function test_root_user() {
if [ "$EUID" -ne 0 ]
then echo "Please run LabyrinthAP installer as root"
exit
fi
}
function update_system_packages() {
install_log "Updating sources"
sudo apt-get update || install_error "Unable to update package list"

Loading…
Cancel
Save