Skip to content

Instantly share code, notes, and snippets.

@whitekid
Last active December 21, 2015 10:29
Show Gist options
  • Save whitekid/6292173 to your computer and use it in GitHub Desktop.
Save whitekid/6292173 to your computer and use it in GitHub Desktop.
moinmoin wiki spam clear script alias가 없는 사용자는 무조건 날린다. ㅎㅎ
#!/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