Files
alpine-web-werver/bin/checkroot.sh
T
2019-04-19 10:30:55 +02:00

11 lines
127 B
Bash
Executable File

#!/bin/sh
echo -e "checking root"
if [ "$EUID" = 0 ]; then
echo -e "root ok"
else
echo -e "Please run as root"
exit
fi