diff --git a/ReadMe.md b/ReadMe.md index 509d7fa..4b5a204 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -22,6 +22,8 @@ SUDO_USER="" USE_SUDO=<1: use sudo, 0: no sudo used> ``` +The script will create the sudo user if needed automatically + ### base_setup.sh as is, if the folder exists it will only copy the scripts, will not alter or change anything. diff --git a/src/bin/base_setup.sh b/src/bin/base_setup.sh index 1183df5..fd66629 100755 --- a/src/bin/base_setup.sh +++ b/src/bin/base_setup.sh @@ -39,6 +39,15 @@ if [ "$(whoami)" != "root" ]; then error=1; fi; +if [ -z "$(command -v setfacl)" ]; then + echo "Missing setfacl command, aborting"; + error=1; +fi; +if [ -z "$(command -v git)" ]; then + echo "Missing git command, aborting"; + error=1; +fi; + if [ $error -eq 1 ]; then exit; fi;