add stack user all=all

Change-Id: I2a1f9417beb2a53c74fc00b6807542144108914d
This commit is contained in:
Kun Huang 2015-11-13 17:19:46 +08:00
parent 1c26de127b
commit 001f2bb93c
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ SCALPELS_DATA_DIR=$DATA_DIR/scalpels/scripts
function install_scalpels {
git_clone $SCALPELS_REPO $SCALPELS_DIR $SCALPELS_BRANCH
setup_develop $SCALPELS_DIR
local tempfile=`mktemp`
echo "$STACK_USER ALL=(ALL) NOPASSWD:ALL" >$tempfile
chmod 0440 $tempfile
sudo chown root:root $tempfile
sudo mv $tempfile /etc/sudoers.d/scalpels-tracer
}
function init_scalpels {