#! /bin/sh # Installation script for IkonBoard under Red Hat Linux 7.2 running # Apache 1.3 (but should work with any Apache installation under Unix # provided you set the directory names correctly below). # Unzip the distribution .zip file in /tmp, copy this script into the # ib302 directory created by doing the unzip, and type ./install in # that directory. # Copyleft Peter Flynn, Silmaril Consultants (peter@silmaril.ie) # License: GPL (you can do anything you like with this software except # pretend you wrote it or stop someone else using it). No warranties. # A full copy of the GNU Public License is available for inspection at # http://www.gnu.org/licenses/licenses.html # Version 1 (5 March 2002) ############################################################################ # # Change these values to the ones used on your system # # For example, older Apaches use /home/httpd for WEBHOME # ############################################################################ WEBHOME=/var/www CGIDIR=cgi-bin DOCROOT=html ############################################################################ # # Don't change anything below here # ############################################################################ # Remember where we came from IBTMP=`dirname $0` # Go to where we're going to cd $WEBHOME/$CGIDIR # Create the ikonboard directory and its children mkdir -pm 0755 ikonboard ln -s ikonboard ib3 cd ikonboard mkdir -pm 0777 BACK_UP Data Database INCOMING INSTALL_DATA install_modules \ Languages OUTGOING Skin Sources mkdir -pm 0777 install_modules/Archive/Compress # Copy INSTALL_DATA, getting rid of intrusive DOS carriage-returns cd $IBTMP/iB3_UPLOAD/cgi-bin/INSTALL_DATA for f in *.dat *.html *.txt; do tr -d '\015' <$f >$WEBHOME/$CGIDIR/ikonboard/INSTALL_DATA/$f done chmod 0777 *.dat *.html *.txt # Do the same for install_modules, # plus subdirectories Archive and Archive/Compress cd $IBTMP/iB3_UPLOAD/cgi-bin/install_modules for f in *.pl *.pm; do tr -d '\015' <$f >$WEBHOME/$CGIDIR/ikonboard/install_modules/$f done chmod 0777 * cd Archive for f in *.html *.pm; do tr -d '\015' <$f >$WEBHOME/$CGIDIR/ikonboard/install_modules/Archive/$f done chmod 0777 * cd Compress for f in *.pm; do tr -d '\015' <$f >$WEBHOME/$CGIDIR/ikonboard/install_modules/Archive/Compress/$f done chmod 0777 * # Copy the tarballs, CGI scripts, and config file cd $IBTMP/iB3_UPLOAD/cgi-bin cp *.tar $WEBHOME/$CGIDIR/ikonboard chmod 0777 *.tar for f in *.cgi *.conf; do tr -d '\015' <$f >$WEBHOME/$CGIDIR/ikonboard/$f done chmod 0755 $WEBHOME/$CGIDIR/ikonboard/*.cgi # Make it all Apache's chown -R apache $WEBHOME/$CGIDIR/ikonboard # Copy the HTML files to the document root cd $WEBHOME/$DOCROOT mkdir -pm 0777 iB_html mkdir -pm 0777 iB_html/uploads iB_html/non-cgi chown -R apache $WEBHOME/$DOCROOT/iB_html exit 0