Last active
December 27, 2015 02:29
-
-
Save saerdnaer/7252589 to your computer and use it in GitHub Desktop.
Upgrade a dokuwiki installation to the current release candidate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# this file shoud be placed in the dokuwiki root | |
wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-rc.tgz | |
tar -xf dokuwiki-rc.tgz --strip-components=1 | |
rm dokuwiki-rc.tgz | |
# Remove unused files | |
grep -Ev '^($|#)' data/deleted.files | xargs -n 1 rm -vf | |
# fix permissions (customise for your environment) | |
chown -R www-data:www-data . | |
# Reset upgrade message | |
rm data/cache/messages.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment