Changeset 1216 for trunk/locker/deploy/bin/onathena
- Timestamp:
- Jun 30, 2009, 8:37:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/locker/deploy/bin/onathena ΒΆ
r1215 r1216 235 235 fi 236 236 237 # xavid: use p to keep the same permissions as in the file238 repo="/mit/scripts/wizard$scriptsdev/srv/$deploy.git"239 if [ -e "$repo" ]; then240 admin=`cat .admin`241 rm .admin242 ls -Al243 athrun git git init244 echo "Deny from all" > ".git/.htaccess"245 echo "$repo/objects" > ".git/objects/info/alternates"246 athrun git git remote add origin "$repo"247 athrun git git config branch.master.remote origin248 athrun git git config branch.master.merge refs/heads/master249 athrun git git fetch origin250 athrun git git branch --track master origin/master251 athrun git git checkout master252 echo "$admin" > .admin253 else254 athrun scripts gtar zxpf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"255 files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`256 numfiles=`echo "$files" | wc -l`257 if [ ! -z "$files" ]; then258 if [ "$numfiles" -eq 1 ]; then259 athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -i mv \{} .260 rmdir "$files"261 fi262 fi263 fi264 if [ -f "/mit/scripts/deploy$scriptsdev/php.ini/$deploy" ]; then265 nodot=`echo "$lname" | sed "/\./s///"`;266 sed -e "/SCRIPTS_USER/ s//$lname/" -e "/SCRIPTS_NODOT/ s//$nodot/" "/mit/scripts/deploy$scriptsdev/php.ini/$deploy" > php.ini267 athrun scripts gfind . -mindepth 1 -type d -exec sh -c 'ln -sf "`echo "$1" | sed '\''s,[^/],,g; s,/,../,g'\''`php.ini" "$1/"' -- {} \;268 fi269 237 cd "$origdir" 270 238 271 vsshrun "deploy$scriptsdev/bin/$deploy" "$ sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration"239 vsshrun "deploy$scriptsdev/bin/$deploy" "$lname" "$sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration" 272 240 rm -f "$lroot/web_scripts/$addrend/.scripts-tmp" 273 241 checkfailed
Note: See TracChangeset
for help on using the changeset viewer.