projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix ids_from_emails to ignore case in submitted emails
[platal.git]
/
upgrade
/
0.9.14
/
wiki.utf8.sh
diff --git
a/upgrade/0.9.14/wiki.utf8.sh
b/upgrade/0.9.14/wiki.utf8.sh
index
06a90d5
..
63c56af
100644
(file)
--- a/
upgrade/0.9.14/wiki.utf8.sh
+++ b/
upgrade/0.9.14/wiki.utf8.sh
@@
-1,11
+1,20
@@
#!/bin/sh
WIKISPOOLDIR='../../spool/wiki.d/'
#!/bin/sh
WIKISPOOLDIR='../../spool/wiki.d/'
+IMAGESPOOLDIR='../../spool/uploads/'
find $WIKISPOOLDIR -name 'cache_*' -or -name 'tmp_*' -exec rm {} ";"
for i in `find $WIKISPOOLDIR -type f`; do
find $WIKISPOOLDIR -name 'cache_*' -or -name 'tmp_*' -exec rm {} ";"
for i in `find $WIKISPOOLDIR -type f`; do
+ CONV=`echo -n $i | iconv -t UTF-8`
mv $i $i.latin1
mv $i $i.latin1
- iconv -t UTF-8 $i.latin1 > $i
+ iconv -f latin1 -t UTF-8 $i.latin1 > $CONV
+done
+
+for i in `find $IMAGESPOOLDIR -type f`; do
+ CONV=`echo -n $i | iconv -f latin1 -t UTF-8`
+ if [ $i != $CONV ]; then
+ mv $i $CONV
+ fi
done
echo "Les pages de wiki ont ete converites en UTF-8"
done
echo "Les pages de wiki ont ete converites en UTF-8"
@@
-13,3
+22,5
@@
echo "Verifie que tout c'est bien passe en presse ^D"
cat
find $WIKISPOOLDIR -name '*.latin1' -exec rm {} ";"
cat
find $WIKISPOOLDIR -name '*.latin1' -exec rm {} ";"
+chown -R www-data:www-data $WIKISPOOLDIR
+