add script + playbook for modernpaste paste deactivation
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
cc94f5d4ea
commit
13179ee96b
3 changed files with 23 additions and 0 deletions
7
roles/modernpaste/files/deactivate-paste.py
Normal file
7
roles/modernpaste/files/deactivate-paste.py
Normal 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])))
|
Loading…
Add table
Add a link
Reference in a new issue