#!/bin/bash # # Install QuickWikiCMS, a lightweight and free Content Management System made # from PmWiki, two recipes, and a skin. Current version at: # http://quickwikicms.com/site/uploads/Main.InstallationLogWithoutComments/install-cms.txt # dir="site" # name of the wiki's directory that will be created ver="2.2.118" # pmwiki version - see http://www.pmwiki.org/wiki/PmWiki/Download url="http://localhost/" # url for the directory where this script is # ## Download and install PmWiki if [ -e $dir ] ; then echo "$dir exists"; exit fi if [ ! -f pmwiki-$ver.tgz ] ; then wget http://www.pmwiki.org/pub/pmwiki/pmwiki-$ver.tgz fi tar -zxvf pmwiki-$ver.tgz mv pmwiki-$ver $dir # ## Download and install the recipes and skin cd $dir/local/ wget http://haganfox.net/pmwfiles/CMSMode-latest.tar.gz wget http://haganfox.net/pmwfiles/QuickWikiCMS-latest.tar.gz wget http://haganfox.net/pmwfiles/AdaptSkin-latest.tar.gz tar -zxvf CMSMode-latest.tar.gz -C ../ tar -zxvf QuickWikiCMS-latest.tar.gz -C ../ tar -zxvf AdaptSkin-latest.tar.gz -C ../pub/skins/ mv ../index-CMS-php.txt ../index.php mv config-CMS-php.txt config.php # ## Create pagestore and uploads directories with proper permissions chmod 2777 ../ # ../ is the $dir/ directory wget -O- $url$dir/ >/dev/null chmod 0775 ../ chmod g-s ../ # ## Open config file to add passwords #vi config.php # or: pico config.php