The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Small bug.

Discussion in 'General Discussion' started by Vince, Oct 15, 2001.

  1. Vince

    Vince Active Member
    PartnerNOC

    Joined:
    Aug 13, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Theres a small bug in /etc/bashrc.
    this line:

    DNS=`cat /var/cpanel/users/$whoami | grep DNS | awk -F= \'{ print $2 }\' | tr -d \' \'`

    Fetches subdomains from the /var/cpanel/users/ file too, and shouldn\'t.
    It can be fixed by changing it to:

    DNS=`cat /var/cpanel/users/$whoami | grep DNS= | awk -F= \'{ print $2 }\' | tr -d \' \'`

    Thanks.

    Vince.
     
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    What does that line do (before your edit and after) and why is it so important? We will appreciate some more info.
     
Loading...

Share This Page