Add upgrade script for 0.9.14 (just hope it will be ok :)
[platal.git] / upgrade / 0.9.14 / wiki.utf8.sh
CommitLineData
3a824ce3 1#!/bin/sh
2
3WIKISPOOLDIR='../../spool/wiki.d/'
4
5find $WIKISPOOLDIR -name 'cache_*' -or -name 'tmp_*' -exec rm {} ";"
6for 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 10done
11
12echo "Les pages de wiki ont ete converites en UTF-8"
13echo "Verifie que tout c'est bien passe en presse ^D"
14cat
15
16find $WIKISPOOLDIR -name '*.latin1' -exec rm {} ";"
2256e1b4 17chown -R www-data:www-data $WIKISPOOLDIR
18