X-Git-Url: https://git.ucc.asn.au/?p=planet-ucc.git;a=blobdiff_plain;f=launch-update-planet.sh;h=38c06bc989ef3edc14645d735959d4c3888e7311;hp=f6cd890db568f9ad319d210a9925ff249a5d54d3;hb=ed167999cf6635069ff58d0f613c160d20427fa0;hpb=b5a8a9d513941817e1a085b2cd6aede77279e93a diff --git a/launch-update-planet.sh b/launch-update-planet.sh index f6cd890..38c06bc 100755 --- a/launch-update-planet.sh +++ b/launch-update-planet.sh @@ -10,6 +10,9 @@ OLDPWD=`pwd` cd $HOME/projects/planetucc/ ./update-planet -scp planet.html planet@mussel.ucc.asn.au:public-html/index.html -scp rss[12].xml planet@mussel.ucc.asn.au:public-html/ +EXITSTATUS=$? +if [ "$1" == "force" ] || [ $EXITSTATUS -eq 0 ]; then + scp planet.html planet@ssh.ucc.asn.au:public-html/index.html + scp {rss1,rss2,foaf,opml}.xml planet@ssh.ucc.asn.au:public-html/ +fi cd $OLDPWD