diff --git a/easyinstall.sh b/easyinstall.sh index 4dba5c65..2d302b2a 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -78,6 +78,10 @@ function initialChecks() { # checks that the current user has sudoers privileges function sudoCheck() { + if [[ $HEADLESS ]]; then + echo "Skipping password check in headless mode" + return 0 + fi echo "Input your password to allow this script to make the above changes." sudo -v } @@ -128,8 +132,6 @@ function installPackagesStandalone() { # cache the pip packages function cachePipPackages(){ pushd $WEB_INSTALL_PATH - # Refresh the sudo authentication, which shouldn't trigger another password prompt - sudo -v sudo pip3 install -r ./requirements.txt popd } @@ -141,8 +143,6 @@ function compileRaScsi() { echo "Compiling with ${CORES:-1} simultaneous cores..." make clean