40
This commit is contained in:
parent
efa3ad7b9d
commit
5eb0cc7d72
@ -1,5 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
export CPDIR=/opt/fw1
|
||||||
|
export FWDIR=${CPDIR}
|
||||||
|
export SUROOT=/var/suroot
|
||||||
|
. /pfrm2.0/etc/bashrc
|
||||||
|
|
||||||
if [ "$( pt users -f username $USER -F role | head -n 1 | grep -v {} )" != "ROLE.SUPER" ];then
|
if [ "$( pt users -f username $USER -F role | head -n 1 | grep -v {} )" != "ROLE.SUPER" ];then
|
||||||
echo "This script can only run from a user with ROLE.SUPER ie super user"
|
echo "This script can only run from a user with ROLE.SUPER ie super user"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ "$( pt users -f username $USER -F role | head -n 1 | grep -v {} )" != "ROLE.SUPER" ];then
|
|
||||||
echo "This script can only run from a user with ROLE.SUPER ie super user"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
FLAGS_PREFIX="/tmp/dst-dom-script-flag_"
|
FLAGS_PREFIX="/tmp/dst-dom-script-flag_"
|
||||||
WORK_DIR="/tmp/dst-dom-script"
|
WORK_DIR="/tmp/dst-dom-script"
|
||||||
|
|
||||||
@ -16,6 +11,12 @@ export FWDIR=${CPDIR}
|
|||||||
export SUROOT=/var/suroot
|
export SUROOT=/var/suroot
|
||||||
. /pfrm2.0/etc/bashrc
|
. /pfrm2.0/etc/bashrc
|
||||||
|
|
||||||
|
if [ "$( pt users -f username $USER -F role | head -n 1 | grep -v {} )" != "ROLE.SUPER" ];then
|
||||||
|
echo "This script can only run from a user with ROLE.SUPER ie super user"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -f "${FLAGS_PREFIX}unsetx" ];then
|
if [ -f "${FLAGS_PREFIX}unsetx" ];then
|
||||||
set -x
|
set -x
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user