add script + playbook for modernpaste paste deactivation

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2016-12-05 18:35:13 +00:00
parent cc94f5d4ea
commit 13179ee96b
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env python
import sys
sys.path.append('/usr/share/modern-paste/app')
from util.cryptography import get_decid
from database.paste import deactivate_paste
print(deactivate_paste(get_decid(sys.argv[1])))