Rev 2497 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
!if $job2=restore
list=log www w public_html
!endif
!if $job2=upload
list=public_html/bases public_html/gifs public_html/modules public_html/scripts public_html/themes log
!endif
!if $list=$empty
!exit
!endif
test=!sh cd $wims_home\
rm -fR update\
mkdir -p update\
tar -C update -xzf $wims_sesdir/user-deposit\
find update -name .wimshome -exec rm '{}' \;\
find update -type l -exec rm '{}' \;\
list=`cd update; ls -d $list 2>/dev/null`\
for d in $$list; do\
cp -upLR update/$$d/* $$d\
echo $$d\
done\
[ -d update/public_html/modules ] && bin/mkindex >/dev/null\
[ -d update/log/classes ] && log/classes/.build-index >/dev/null\
rm -fR update\
[ -d /wsys ] && touch /wsys/wims/timestamp 2>/dev/null