3a824ce3 |
1 | #!/bin/sh |
2 | |
3 | WIKISPOOLDIR='../../spool/wiki.d/' |
4 | |
5 | find $WIKISPOOLDIR -name 'cache_*' -or -name 'tmp_*' -exec rm {} ";" |
6 | for i in `find $WIKISPOOLDIR -type f`; do |
caf4ad02 |
7 | CONV=`echo -n $i | iconv -t UTF-8` |
3a824ce3 |
8 | mv $i $i.latin1 |
caf4ad02 |
9 | iconv -t UTF-8 $i.latin1 > $CONV |
3a824ce3 |
10 | done |
11 | |
12 | echo "Les pages de wiki ont ete converites en UTF-8" |
13 | echo "Verifie que tout c'est bien passe en presse ^D" |
14 | cat |
15 | |
16 | find $WIKISPOOLDIR -name '*.latin1' -exec rm {} ";" |
2256e1b4 |
17 | chown -R www-data:www-data $WIKISPOOLDIR |
18 | |