added root check
parent
c9b50db0d1
commit
b2bf49719d
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue