Also, gen-salt demands to be runned under root, so let's check for it and fail if it doesn't.
This commit is contained in:
parent
14ec537d82
commit
3696e1dfe1
@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
|
|
||||||
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
echo "Must run as root!" >&2;
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $1 ]]; then
|
if [[ $1 ]]; then
|
||||||
char_num=$1;
|
char_num=$1;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user