FAQ: Automating PHP-Nuke Filesystem Updates
Date: Sunday, August 10 @ 22:49:03 CEST
Topic: PHP-Nuke


Due to the growing success of the CVS version of PHP-Nuke, Nuke Cops has released the new shellscript version that is now out of beta phase. This is a BASH script available from download here, called NC_CVS_Update.sh. For those of you using previoous releases, this fixes all bugs.

The file itself has instructions internally. However, it is important to note right now the following:

## Enter directory path to where "betaNC" resides.
## Example, if "betaNC" lives in "/home/mysite/www/betaNC", then list directory
## path as "/home/mysite/www/".

cd /home/mysite/www
Change the directory to the location where "betaNC" will reside. There are various options one can elect to use in the script. Most are commented out, however, by default the script assumes you have logged into the Nuke Cops CVS Repository anonymously in the past, it then updates your local copy of it and performs an exit without issuing a CVS logout. You can also select to check the status and also to perform a full checkout.

It is recommended to leave the settings as-is, and to only modify the "cd /home/mysite/www" path. If you already have the CVS edition of PHP-Nuke, then that is all you need to modify.

If however you do not have a local copy yet, I suggest you change directory to the location you want "betaNC" installed and run the following manually:

cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs login
(enter "anonymous" as the password)
cvs -d :pserver:anonymous@cvs.nukecops.com:/home/cvs checkout betaNC

From here on out you can run the shell script manually or from a cron. Your system will maintain login information for the Nuke Cops betaNC repository. Just edit your config.php, and serverload.php files for an automated website.

The other suggestion I have is to read the script about ".cvsignore" information. You may want to ignore the updates for nukesql.php, as you don't want that on your site for someone to come by and destroy your database.

If you have any questions, the NC Forums are always open and ready for your posting pleasures. Note that there is an official bug reporting and tracking system available at bugs.nukecops.com. All bugs should be reported there, as they will get maximum exposure and visibility by the developers. Thanks and good luck.





This article comes from NukeCops
http://www.nukecops.com

The URL for this story is:
http://www.nukecops.com/modules.php?name=News&file=article&sid=464