EUID fix
This commit is contained in:
parent
6591b66247
commit
b622e351cc
1 changed files with 3 additions and 4 deletions
7
deploy-tools.sh
Normal file → Executable file
7
deploy-tools.sh
Normal file → Executable file
|
@ -1,11 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! "$UID" = "0" ]; then
|
||||
echo "# script must be ran as root"
|
||||
exit 1
|
||||
if (( $EUID != 0 )); then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
case $1 in
|
||||
router)
|
||||
cp tools/router.sh /usr/local/bin/router.sh
|
||||
|
|
Reference in a new issue