Last active
December 21, 2015 10:29
-
-
Save whitekid/6292173 to your computer and use it in GitHub Desktop.
moinmoin wiki spam clear script alias가 없는 사용자는 무조건 날린다. ㅎㅎ
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
#!/usr/bin/env bash | |
wiki_dir=/usr/local/www/wiki | |
cd $wiki_dir | |
# clear pages | |
rm -rf trash | |
mkdir trash | |
moin --config-dir=$wiki_dir --wiki-url=http://wiki.woosum.net maint cleanpage | bash | |
# clear span account | |
find data/user -type f -exec grep -l '^aliasname=$' {} \; | xargs rm -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment