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.

sysup error

Discussion in 'General Discussion' started by logical, May 30, 2003.

  1. logical

    logical Member

    Joined:
    May 30, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to do a /scripts/sysup and receive the follwing error:

    su-2.05b# /scripts/sysup
    Can't find distro version at /scripts/fileversion.pl line 15.

    Here is my perl file:

    #!/usr/bin/perl
    sub getversionfromfile {
    ($file) = @_;
    my($line,$version);

    open(FILE,$file);
    chomp($line = <FILE>);
    if ($line =~ /(\d+\.\d+)/) {
    $version = $1;
    } elsif ($line =~ /(\d+)/) {
    $version = $1;
    }
    close(FILE);

    if ($version eq "") { die "Can't find distro version"; }
    return $version;
    }
    1;


    Any ideas what might be wrong? I have recently changed over companies for my license, not sure if that may be the problem.

    Thanks.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page