7 PKG_LOG_DIR=/var/pkgmgr/rpm
11 /bin/echo ">>$DEBUG" >> /tmp/rpmscriptlog
16 if [ $NOARG -lt 1 ] || [ $NOARG -gt 2 ] ; then
17 DEBUG="Usage: install.sh PKG_FILE";debug
19 elif [ $NOARG -eq 2 ] ; then
25 DEBUG="File not found";debug
26 exit $E_FILE_NOT_FOUND
29 if [ ! -d $PKG_LOG_DIR ];then
30 DEBUG="$PKG_LOG_DIR not exist -> mkdir(ok)";debug
31 /bin/mkdir -p $PKG_LOG_DIR
35 /bin/rpm --install --percent --nodeps --force $OPTION_FLAGS "$PKGFILE_PATH"
37 if [ $rpmretval -ne 0 ]; then
38 DEBUG="rpm returned error ";debug
41 DEBUG="rpm success ";debug