Results 1 to 3 of 3

Thread: sh script to update PHP-Nuke install pkg to current version

  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    11

    Post sh script to update PHP-Nuke install pkg to current version

    I modified the script written by Al Smith in thread... http://forums.cpanel.net/showthread....threadid=15097 to update the phpnuke install pkg to the current version ( 7.2 at this time ).

    In cpanel it still shows 6.8, and I don't think it lets you upgrade a previous install ( I didn't have 6.8 installed so I couldn't test that ).

    Hopefully this will be helpful to some of you....
    (It works for me)

    Code:
    #!/bin/sh
    
    # getnuke.sh
    # seanhogan.us 20May04
    # Based on Al Smith 09-01-2003 
    # Update cpanel PHP Nuke pkg.tar.gz file to current version
    
    Version=PHP-Nuke-7.2.zip             # Version to fetch
    NukeHome=/usr/local/cpanel/addons/PHP-Nuke   # Cpanel addon dir for PHP-Nuke
    NukeFile=pkg.tar.gz                           # Cpanel file name
    Source=http://phpnuke.org/files/
    
    mkdir /tmp/Nuke 
    cd /tmp/Nuke
    
    mkdir pkg
    cd pkg
    
    wget $Source/$Version  # Get the version
    
    unzip $Version
    
    mv *.zip /tmp  # move the .zip file out
    
    cd /tmp/Nuke
    tar cvfz $NukeFile pkg   # Create the pkg file
    
    cp $NukeFile $NukeHome   # Copy the pkg to the Nuke Home
    
    rm -rf /tmp/Nuke     # Clean up the mess
    
    #
    #  End
    #
    # TO DO:  
    # update cpanel to show current nuke version (shows 6.8 now)
    # make cpanel work with upgrading previous version of nuke

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default

    cool, did it work properly
    -Albert

  3. #3
    Member
    Join Date
    Jan 2003
    Posts
    11

    Default

    Yes, but the pages in CPanel still show 6.8, and I don't know if the upgrade php-nuke install option in CPanel will work with this, because I didn't have a previous version of php-nuke installed by Cpanel.

    Your original script helped me when it was version 6.8 or 6.9.
    Thanks for your help!

    ~Sean

Similar Threads

  1. Need to install less-than-current version of Perl module
    By sundialsvc4 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 04-07-2009, 10:08 PM
  2. cPanel install is failing with current 'latest' script
    By kaosent in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 08-03-2006, 05:27 PM
  3. Errormsg. since update to current version (
    By ezztro in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-03-2006, 12:51 AM
  4. There is a new version of PHP-Nuke...
    By codemonkey in forum cPanel Developers
    Replies: 4
    Last Post: 05-11-2005, 09:49 PM
  5. openinstaller update script nuke & phpbb problem ?
    By RegisterHosting in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 11-12-2004, 10:30 AM