diff --git a/build-and-push.sh b/build-and-push.sh index aa8debc..29f7fca 100755 --- a/build-and-push.sh +++ b/build-and-push.sh @@ -1,3 +1,9 @@ +# only allow to run this script as root +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + #docker compose down # rm images diff --git a/build-docker.sh b/build-docker.sh index c35dc9f..12bf4c7 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -1,3 +1,9 @@ +# only allow to run this script as root +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi + ORANGE='\033[0;33m' # Orange GREEN='\033[0;32m' # Green NC='\033[0m' # No color (reseting)