Compare commits
2 Commits
6c9245be0a
...
e5a8d2d21b
Author | SHA1 | Date | |
---|---|---|---|
e5a8d2d21b | |||
e295e915d8 |
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash -e
|
||||||
|
|
||||||
function log {
|
function log {
|
||||||
echo "$(date +'%Y-%m-%d %H:%M:%S') $@"
|
echo "$(date +'%Y-%m-%d %H:%M:%S') $@"
|
||||||
@ -10,7 +10,7 @@ if [ -f "/etc/sshutter.conf" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if args are given
|
# Check if args are given
|
||||||
if [ "$WHITELIST" -eq "" ] || [ "$PORT" -eq "" ] || [ "$TARGET" -eq "" ]; then
|
if [ "$WHITELIST" == "" ] || [ "$PORT" == "" ] || [ "$TARGET" == "" ]; then
|
||||||
echo "Error: you need to specify WHITELIST, PORT and TARGET, either in /etc/sshutter.conf or through environment variables." 1>&2
|
echo "Error: you need to specify WHITELIST, PORT and TARGET, either in /etc/sshutter.conf or through environment variables." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user