New tool, to give admin status to a user: dnsmanager-admin
This commit is contained in:
parent
d1f890f869
commit
5ba3bb2559
1 changed files with 10 additions and 0 deletions
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…
Add table
Reference in a new issue