diff --git a/bin/dm-add-user b/bin/dm-add-user new file mode 100755 index 0000000000000000000000000000000000000000..104bc11d4ee2d2359a7847e81a70c1b1b31c87bd --- /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 0000000000000000000000000000000000000000..0a8eb23891d42db438c62bdbffe34d49fe208f1a --- /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 $@ + +