Subversion Repositories wimsdev

Rev

Rev 8870 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
2
!if $job2=restore
3
 list=log www w public_html
4
!endif
5
 
6
!if $job2=upload
7
 list=public_html/bases public_html/gifs public_html/modules public_html/scripts public_html/themes log
8
!endif
9
 
10
!if $list=$empty
11
 !exit
12
!endif
13
 
14
test=!sh cd $wims_home\
15
	rm -fR update\
16
	mkdir -p update\
17
	tar -C update -xzf $wims_sesdir/user-deposit\
18
	find update -name .wimshome -exec rm '{}' \;\
19
	find update -type l -exec rm '{}' \;\
20
	list=`cd update; ls -d $list 2>/dev/null`\
21
	for d in $$list; do\
11117 bpr 22
	 cp -pLR update/$$d/* $$d\
23 reyssat 23
	 echo $$d\
24
	done\
25
	[ -d update/public_html/modules ] && bin/mkindex >/dev/null\
26
	[ -d update/log/classes ] && log/classes/.build-index >/dev/null\
27
	rm -fR update\
28
	[ -d /wsys ] && touch /wsys/wims/timestamp 2>/dev/null