Commit 612fa15c authored by luhan Wang's avatar luhan Wang

install udm binary to /usr/local/bin

parent 42d76895
......@@ -4,7 +4,7 @@ THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
OPENXGUDM_DIR=${THIS_SCRIPT_PATH%/*}
OPENXGUDM_DIR=${OPENXGUDM_DIR%/*}
INSTALL_DIR=/usr/local/bin
###############################
## echo and family
###############################
......@@ -134,10 +134,13 @@ function main()
cd $OPENXGUDM_DIR/build/UDM
if [[ $jobs -ne 0 ]]; then
make -j4
make -j`nproc`
else
make
fi
$SUDO chmod 755 $OPENXGUDM_DIR/build/UDM/udm
$SUDO cp -upv $OPENXGUDM_DIR/build/UDM/udm $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/udm && echo_success "UDM installed"
return 0
}
main $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment