This page explains how to get rid of locally modified SystemPages, while upgrading a MoinMoin wiki.

This page is especially useful for upgrading wikis where lots of SystemPages were modified, or people migrating from MoinMoin 1.2 to 1.3.

For other people, just use the wiki-based method (see HelpOnUpdating).


So here is a little shell script that helped me to delete the SystemPages from my DataDirectory as suggested in MoinMoinRelease1.3/CHANGES. The first argument is the path to the data_underlay_dir and the second to the datadir. If the skript finds a page living in both directories it asks you, if it should delete the page from the datadir, in most cases you want to delete it. /!\ Take care about your FrontPage.

# THIS CODE PROVIDES NO WARRANTY bla bla...
# Cleanup the datadir
# cleanupdatadir.sh /path/to/underlaydir /path/to/datadir

for i in `find "$1"/pages -mindepth 1 -maxdepth 1 -type d -printf "%f\n"`; do
    find "$2"/pages/"$i" -maxdepth 0 -type d -ok rm -rf '{}' ';'
done

-- DanijelTasov 2005-01-03 00:16:07

MoinMoin: RemovingSystemPages (last edited 2009-06-27 11:56:42 by FranklinPiat)