redirect error message to stderr
This commit is contained in:
parent
b645e2fd7b
commit
65e4ed5a44
14
shellpki.sh
14
shellpki.sh
|
@ -8,9 +8,9 @@ WWWDIR=/var/www/htdocs/vpn/ssl
|
||||||
|
|
||||||
|
|
||||||
if [ "$(id -u)" != "0" ]; then
|
if [ "$(id -u)" != "0" ]; then
|
||||||
echo "Please become root before running shellpki!"
|
echo "Please become root before running shellpki!" >&2
|
||||||
echo
|
echo >&2
|
||||||
echo "Press return to continue..."
|
echo "Press return to continue..." >&2
|
||||||
read REPLY
|
read REPLY
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -152,9 +152,9 @@ fromcsr() {
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ ! -e $path ]; then
|
if [ ! -e $path ]; then
|
||||||
echo "Error in path..."
|
echo "Error in path..." >&2
|
||||||
echo
|
echo >&2
|
||||||
echo "Press return to continue..."
|
echo "Press return to continue..." >&2
|
||||||
read REPLY
|
read REPLY
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -221,7 +221,7 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Usage: shellpki.sh {init|create|fromcsr|revoke|crl}"
|
echo "Usage: shellpki.sh {init|create|fromcsr|revoke|crl}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue