New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79962


Ignore:
Timestamp:
06/30/11 16:08:48 (4 years ago)
Author:
jmr@…
Message:

mpab: use consistent defaults

Location:
contrib/mpab
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/mpab/deploy_archives.sh

    r79902 r79962  
    55fi 
    66if [[ -z "$PREFIX" ]]; then 
    7     PREFIX="../opt/local" 
     7    PREFIX="/opt/local" 
    88fi 
    99# FIXME: configure these 
    1010# download server hostname 
    1111if [[ -z "$DLHOST" ]]; then 
    12     DLHOST=mparchives.local 
     12    DLHOST="" 
    1313fi 
    1414# path where it keeps archives 
     
    3131                aname=$(basename $archive) 
    3232                echo deploying archive: $aname 
    33                 #openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ./${aname}.rmd160 ${archive} 
    34                 #ssh ${DLHOST} mkdir -p ${DLPATH}/${portname} 
    35                 #rsync -av --ignore-existing ./${aname}.rmd160 ${archive} ${DLHOST}:${DLPATH}/${portname} 
     33                if [[ -n "$PRIVKEY" ]]; then 
     34                    openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ./${aname}.rmd160 ${archive} 
     35                fi 
     36                if [[ -n "$DLHOST" ]]; then 
     37                    ssh ${DLHOST} mkdir -p ${DLPATH}/${portname} 
     38                    rsync -av --ignore-existing ./${aname}.rmd160 ${archive} ${DLHOST}:${DLPATH}/${portname} 
     39                fi 
    3640                rm -f ./${aname}.rmd160 
    3741            done 
  • contrib/mpab/do_status.sh

    r79902 r79962  
    55fi 
    66if [[ -z "$PREFIX" ]]; then 
    7     PREFIX="../opt/local" 
     7    PREFIX="/opt/local" 
    88fi 
    99if [[ -z "$STATUS_LOG" ]]; then 
Note: See TracChangeset for help on using the changeset viewer.