From 84e63feba66a0b86c53c0e01c7e9ecc0e467ed32 Mon Sep 17 00:00:00 2001 From: Sinisa Veseli <sveseli@aps.anl.gov> Date: Tue, 23 Jun 2015 20:08:53 +0000 Subject: [PATCH] new commnds for adding administrator directly to db --- bin/dm-add-user | 17 +++++++++++++++++ bin/dm-add-user-system-role | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 bin/dm-add-user create mode 100755 bin/dm-add-user-system-role diff --git a/bin/dm-add-user b/bin/dm-add-user new file mode 100755 index 00000000..104bc11d --- /dev/null +++ b/bin/dm-add-user @@ -0,0 +1,17 @@ +#!/bin/sh + +# Run command + +if [ -z $DM_ROOT_DIR ]; then + cd `dirname $0` && myDir=`pwd` + setupFile=$myDir/../setup.sh + if [ ! -f $setupFile ]; then + echo "Cannot find setup file: $setupFile" + exit 1 + fi + source $setupFile > /dev/null +fi + +$DM_ROOT_DIR/src/python/dm/common/db/cli/addUserCli.py $@ + + diff --git a/bin/dm-add-user-system-role b/bin/dm-add-user-system-role new file mode 100755 index 00000000..0a8eb238 --- /dev/null +++ b/bin/dm-add-user-system-role @@ -0,0 +1,17 @@ +#!/bin/sh + +# Run command + +if [ -z $DM_ROOT_DIR ]; then + cd `dirname $0` && myDir=`pwd` + setupFile=$myDir/../setup.sh + if [ ! -f $setupFile ]; then + echo "Cannot find setup file: $setupFile" + exit 1 + fi + source $setupFile > /dev/null +fi + +$DM_ROOT_DIR/src/python/dm/common/db/cli/addUserSystemRoleCli.py $@ + + -- GitLab