# # UPGRADING DOKUWIKI # # I've found this to be working fine when upgrading my DokuWiki. The # commands should be used at your own risk. I take no responsibility. # # This example assumes that DokuWiki is installed in the following # folder; # # /srv/vhosts/somesite.com/wiki # # Change the path to match your setup. You can remove the "-i" parameter # from the rm-command if you'd like -- it's put there to avoid removing # something by a mistake. # # By Joachim Tingvold cd /srv/vhosts/somesite.com wget https://github.com/splitbrain/dokuwiki/archive/stable.tar.gz tar -C wiki -xzvf stable.tar.gz --strip-components=1 rm -f stable.tar.gz cd wiki wget -q -O- https://github.com/splitbrain/dokuwiki/raw/stable/data/deleted.files | grep -Ev '^($|#)' | xargs -n 1 rm -irf touch conf/local.php # # Optional: If the touch above doesn't remove the update-warnings # within DokuWiki, you can remove the entire cache. # #rm -rf data/cache/* # # Optional: Fix the most important permissions. It assums that the wiki # files are owned by someuser:www-user. This really depends on your # setup, so please change accordingly. # #chmod -R g+rw data #chmod -R g+rw lib/plugins #chmod g+rw conf/local.php #chmod g+rw conf/users.auth.php #chmod g+rw conf/acl.auth.php #chmod g+rw conf/plugins.local.php