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
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! "$UID" = "0" ]; then
|
if (( $EUID != 0 )); then
|
||||||
echo "# script must be ran as root"
|
echo "Please run as root"
|
||||||
exit 1
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
router)
|
router)
|
||||||
cp tools/router.sh /usr/local/bin/router.sh
|
cp tools/router.sh /usr/local/bin/router.sh
|
||||||
|
|
Reference in a new issue