New tool, to give admin status to a user: dnsmanager-admin
This commit is contained in:
parent
d1f890f869
commit
5ba3bb2559
10
bin/dnsmanager-admin
Executable file
10
bin/dnsmanager-admin
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 1 ]
|
||||
then
|
||||
echo "Usage: $0 file.json"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
jq .admin=true < $1 > $1.new
|
||||
mv $1.new $1
|
Loading…
Reference in New Issue
Block a user