#!/bin/bash site_target='twiki_blank' cd /home/httpd/$site_target #wiki Logo/Header cp -f sample_logo.png pub/wikiHome.gif cp -f sample_logo.png pub/TWiki/TWikiLogos/wikiHome.gif cp -f sample_logo.png pub/TWiki/GnuSkin/logo.png for FIL in `find . -type f -exec grep -l "" {} \;` do cp $FIL $FIL.bu sed 's//twiki_blank/g' $FIL.bu>$FIL rm $FIL.bu done for FIL in `find . -type f -exec grep -l "" {} \;` do cp $FIL $FIL.bu sed 's//http:\/\/nautilus.baruch.sc.edu/g' $FIL.bu>$FIL rm $FIL.bu done chown -R apache pub chown -R apache data cd /home/httpd/$site_target/bin chown apache * #if not running as apache, run below 2 lines with appropriate swap #cd /home/httpd/$site_target/data #perl -pi~ -e 's/nobody:/apache:/' */*,v cd /home/httpd/$site_target find . -name .mailnotify -exec chown twiki {} \; #assuming 'twiki' is cron user running mailnotify exit 0