From 5ba3bb255921e55815543568ede3e6e03a25d981 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sat, 24 Feb 2024 19:38:36 +0100 Subject: [PATCH] New tool, to give admin status to a user: dnsmanager-admin --- bin/dnsmanager-admin | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/dnsmanager-admin diff --git a/bin/dnsmanager-admin b/bin/dnsmanager-admin new file mode 100755 index 0000000..de7e398 --- /dev/null +++ b/bin/dnsmanager-admin @@ -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