afbackup-client.preinst

来自「一套客户/服务器模式的备份系统代码,跨平台,支持linux,AIX, IRIX,」· PREINST 代码 · 共 52 行

PREINST
52
字号
#!/bin/sh -efix_cruft (){   cat <<.EOFIf you get asked to overwrite your old configuration, please do so! Youcan easily reconfigure your system with afserverconfig orxafserverconfig. The existing status information will not be touched..EOF}ask_abort (){   cat <<.EOFYou are upgrading from an incompatible version of afbackup-client. Youhave to upgrade all your machines to the current version of afbackup andafbackup-client or you should abort upgrading now.Do you want to abort? (y/N).EOF   read ANSWER   case "$ANSWER" in      y|Y)	 exit 1      ;;   esac}      case "$1" in    upgrade)	case "$2" in	    2.6*)	        fix_cruft		ask_abort	    ;;	    2*|3.1*|3.3.[1-6]*)	        ask_abort	    ;;        esac    	    ;;    install|abort-upgrade)    ;;    *)        echo "preinst called with unknown argument \`$1'" >&2        exit 0    ;;esac#DEBHELPER#

⌨️ 快捷键说明

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