diff --git a/easyinstall.sh b/easyinstall.sh index 90c2d2d3..5da1cf52 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -59,6 +59,7 @@ GIT_REMOTE=${GIT_REMOTE:-origin} set -e +# checks to run before entering the script main menu function initialChecks() { if [ "root" == "$USER" ]; then echo "Do not run this script as $USER or with 'sudo'." @@ -66,24 +67,19 @@ function initialChecks() { fi } +# checks that the current user has sudoers privileges +function sudoCheck() { + echo "Input your password to allow this script to make the above changes." + sudo -v +} + # install all dependency packages for RaSCSI Service function installPackages() { sudo apt-get update && sudo apt-get install git libspdlog-dev libpcap-dev genisoimage python3 python3-venv nginx libpcap-dev protobuf-compiler bridge-utils python3-dev libev-dev libevdev2 -y