This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while getopts "i:t:" opt; do | |
case $opt in | |
i) | |
$(ip link show $OPTARG 1> /dev/null 2>&1) | |
if [[ $? != 0 ]]; then | |
echo "Argument to -${opt} should be an network device." | |
exit -1 | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
error_log /var/log/nginx/error.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
log_format es '$remote_addr - $remote_user [$time_local] ' |
OlderNewer