patch_postinstall

来自「Solaris系统的tip(1)工具实现上存在漏洞」· 代码 · 共 41 行

TXT
41
字号
# This script deletes the used backout data for a patch package# and removes the deletes file entries.## directory format options.##       @(#)patch_postinstall 1.3 98/07/29 SMI## Copyright (c) 1995 by Sun Microsystems, Inc.# All rights reserved#PATH=/usr/sadm/bin:$PATHTHIS_DIR=`dirname $0`Our_Deletes=$THIS_DIR/deletes## Delete the used backout data#if [ -f $Our_Deletes ]; then	cat $Our_Deletes | while read path; do		if valpath -l $path; then			Client_Path=`echo "$CLIENT_BASEDIR/$path" | sed "s|//|/|"`		else	# It's an absolute path			Client_Path=$path		fi		rm `removef $PKGINST $Client_Path`	done	removef -f $PKGINST	rm $Our_Deletesfi## Remove the deletes file, checkinstall and the postinstall#rm -r $PKGSAV/$ACTIVE_PATCHrm -f $THIS_DIR/checkinstall $THIS_DIR/postinstallexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?