Show
Ignore:
Timestamp:
03/10/07 11:25:40 (2 years ago)
Author:
jm3
Message:

updated configuration setup script to also build our crontab file, so now there are like, ZERO passwords or paths coded anywhere

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/bin/configure.sh

    r1354 r1405  
    5454echo $domain > $root/_config/domain.txt 
    5555 
    56 echo "3. Saving your configurations in env.inc.php (for site application to read)" 
     56echo "3. Saving your configurations in env.inc.php (for the main application to read)" 
    5757xsltproc --$sp server-name $s --$sp mode php $xsl $xml > $root/modules/env.inc.php 
    5858 
     
    6060xsltproc --$sp server-name $s --$sp mode sh $xsl $xml > $root/bin/env.sh 
    6161 
    62 echo "5. ...and as a perl modules format (for other maintenance scripts to read)..." 
     62echo "5. ...and as a perl module (for things like the AIM bot and the add-link from email script)..." 
    6363cp $root/lib/FeedMeLinks/Environment-template.pm $root/lib/FeedMeLinks/Environment.pm 
    6464xsltproc --$sp server-name $s --$sp mode perl $xsl $xml >> $root/lib/FeedMeLinks/Environment.pm 
    6565 
    66 echo 6. FIXME: need to ALSO build a crontab file with the correct paths 
     66echo "6. ...and as a crontab so that all the background processes will run at the correct times with the correct permissions" 
     67crontab="$root/_config/crontab.INSTALL_ME" 
     68xsltproc --$sp server-name $s --$sp mode crontab $xsl $xml > $crontab 
     69echo >> $crontab 
     70echo "# to edit, change $root/_config/crontab-template.txt" >> $crontab 
     71cat $root/_config/crontab-template.txt >> $crontab 
     72 
     73echo "don't forget to install your new crontab in $crontab (copy, crontab -e, paste, save, done!)" 
    6774 
    6875exit 0