diff --git a/installers/raspbian.sh b/installers/raspbian.sh index ca9a01f..5cf41aa 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -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"