⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 post_install

📁 一个功能非常全面的代理服务器源代码程序,
💻
字号:
#!/bin/shPATH=PKG="$1"DST="$2"PKGNAME=`/usr/bin/basename $1`USAGE="Usage: $PKGNAME.post_install package_path [install_path]"trap 'echo "FAILED (interrupted by signal)"; exit 1' 1 2 3 4 15BEGINDATE=`/bin/date`#FDATE=`echo $BEGINDATE | /bin/awk '{print $2 "_" $3 "_" $7 "_" $4}'`echo $PKGNAME post-installation script starts at $BEGINDATEfailed(){	# show failed message and exit	echo "FAILED ($*)"	exit 1}echoecho "Removing the Installer remains of possible other Squid installations... "cd /NextLibrary/Receipts/bin/rm -rf Squid-*.pkg/etc/chown -R nobody.other /usr/local/squid || failed "can't chown $1!"/etc/chown root.wheel /usr/local/squid/bin/pinger  || failed "can't chown $1!"/bin/chmod 4755 /usr/local/squid/bin/pinger  || failed "can't chmod $1!"if [ -e/usr/local/squid/etc/mime.conf ]then	echo "Already have mime.conf"else	echo "Installing default mime.conf"	(cd /usr/local/squid/etc; /bin/cp -p mime.conf.default mime.conf)fiecho "(done)"

⌨️ 快捷键说明

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