Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Lozy committed Feb 17, 2014
1 parent e3376ea commit 4ffd6bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ external: ${IP}
#socksmethod: username
socksmethod: pam.username none
user.notprivileged: sock
logoutput: /var/log/danted.${TAG}.log
logoutput: /var/log/danted_${TAG}.log
##### Master Config ##############
client pass {
Expand Down Expand Up @@ -79,15 +79,15 @@ serverip=$Getserverip
if [ -z "$serverip" ];then
echo "$Getserverip" | while read theip;do
port=$DEFAULT_PORT
intface=$(ifconfig | grep "$Getserverip" -1 | sed -n 1p | awk '{print $1}' )
configfile="/etc/danted/conf/sockd-${intface}.conf"
intface=$(ifconfig | grep "$Getserverip" -1 | sed -n 1p | awk '{print $1}' | sed 's/:/-/g')
configfile="/etc/danted/conf/sockd_${intface}.conf"
genconfig $configfile $theip $port $Intface
i=$((i+1))
done
else
port=$DEFAULT_PORT
intface=$(ifconfig | grep "$serverip" -1 | sed -n 1p | awk '{print $1}')
configfile="/etc/danted/conf/sockd-${intface}.conf"
intface=$(ifconfig | grep "$serverip" -1 | sed -n 1p | awk '{print $1}' | sed 's/:/-/g' )
configfile="/etc/danted/conf/sockd_${intface}.conf"
genconfig $configfile $serverip $port $intface
fi

Expand Down

0 comments on commit 4ffd6bf

Please sign in to comment.