root/feedmelinks/bin/regenerate-portal.sh

Revision 943, 371 bytes (checked in by fml, 2 years ago)

pointed script at new ~/feedmelinks symlink

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/sh
2
3 cd $HOME/feedmelinks
4
5 tmp=tmp-portal.php
6 domain=`cat _config/domain.txt`
7
8 curl -s http://$domain/portal-uncached.php > $tmp
9
10 sleep 1
11
12 if [ -f $tmp ]
13 then
14         mv $tmp portal.php
15 else
16         echo PORTAL RE-GENERATION FAILED AT `date`, `ls -l portal.php`
17         echo i am $USER in `pwd`
18         echo ran curl: to $tmp
19         echo last return value was $?
20         echo slept 1 second
21         echo
22         set
23 fi
24
Note: See TracBrowser for help on using the browser.