Ignore:
Timestamp:
Jun 30, 2009, 8:46:04 PM (13 years ago)
Author:
ezyang
Message:
Reverted changes improperly checked into trunk and not a development branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/locker/deploy/bin/onathena

    r1216 r1217  
    235235fi
    236236
     237# xavid: use p to keep the same permissions as in the file
     238athrun scripts gtar zxpf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"
     239files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`
     240numfiles=`echo "$files" | wc -l`
     241if [ ! -z "$files" ]; then
     242    if [ "$numfiles" -eq 1 ]; then
     243        athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -i mv \{} .
     244        rmdir "$files"
     245    fi
     246fi
     247if [ -f "/mit/scripts/deploy$scriptsdev/php.ini/$deploy" ]; then
     248        nodot=`echo "$lname" | sed "/\./s///"`;
     249        sed -e "/SCRIPTS_USER/ s//$lname/" -e "/SCRIPTS_NODOT/ s//$nodot/" "/mit/scripts/deploy$scriptsdev/php.ini/$deploy" > php.ini
     250        athrun scripts gfind . -mindepth 1 -type d -exec sh -c 'ln -sf "`echo "$1" | sed '\''s,[^/],,g; s,/,../,g'\''`php.ini" "$1/"' -- {} \;
     251fi
    237252cd "$origdir"
    238253
    239 vsshrun "deploy$scriptsdev/bin/$deploy" "$lname" "$sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration"
     254vsshrun "deploy$scriptsdev/bin/$deploy" "$sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration"
    240255rm -f "$lroot/web_scripts/$addrend/.scripts-tmp"
    241256checkfailed
Note: See TracChangeset for help on using the changeset viewer.