Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by Tanczos Andras (not registered) on Mon, 2008-12-29 23:17.

I've made some minor changes to your init script to work with multiple domains:

39a40
> PORTS=()
69a71
>   PORTS[${NUM}]="$LPORT"
97,98c99,100
<               if [[ ! -z $(echo $PORT |grep "local") && $RETVAL -eq 0  ]]; then
<                         TPORT=$(echo $PORT | sed -e "s/local://")
---
>               if [[ ! -z $(echo ${PORTS[$i]} |grep "local") && $RETVAL -eq 0  ]]; then
>                         TPORT=$(echo ${PORTS[$i]} | sed -e "s/local://")
Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.