📄 install.sh
字号:
#!/bin/sh# $Id: install.sh,v 1.2 2003/01/10 03:52:36 mmondor Exp $if [ "$1" = "help" ]; then echo echo 'You can optionally set the following environment variables' echo 'to customize the installation process. For each is shown an' echo 'example using the default value followed by a breif description.' echo echo 'export MMLAUNCH="TRUE"' echo ' Tells the install process to immediately launch the daemon(s)' echo ' They are automatically killed before the binaries are copied' echo ' over the old ones as is necessary with some systems. The' echo ' default is to not start them back automatically.' echo echo 'export MMPREFIX="/usr/local"' echo ' Allows to set the installation base directory. All files but' echo ' configuration ones will be installed in directories relative' echo ' to this one.' echo echo 'export MMCONFDIR="/etc"' echo ' Directory in which configuration files should be stored.' echo echo 'export MMDEFAULTUSER="0"' echo ' User new files and directories should be owned by, using' echo ' user id or name.' echo echo 'export MMDEFAULTGROUP="0"' echo ' Group new files and directories should be under, using id' echo ' or name.' echo echo 'export MMADMINGROUP="staff"' echo ' The administrators group, these can for instance view and the' echo ' rotate mmstat statistics and execute mmpasswd. Will be' echo ' created automatically if necessary.' echo echo 'export MMSTATDIR="/var/mmstatd"' echo ' The directory in which mmstatd will store the stats database' echo ' and log files.' echo echo 'export MMSTATDUSER="mmstatd"' echo ' The user mmstatd will run under, to be automatically created.' echo echo 'export MMSTATDGROUP="mmstat"' echo ' Group the mmstatd user should be part of, automatically' echo ' created.' echo exitfi# Set defaults if not setif [ -z "$MMLAUNCH" ]; then export MMLAUNCH='FALSE'fiif [ -z "$MMPREFIX" ]; then export MMPREFIX='/usr/local'fiif [ -z "$MMCONFDIR" ]; then export MMCONFDIR='/etc'fiif [ -z "$MMDEFAULTUSER" ]; then export MMDEFAULTUSER='0'fiif [ -z "$MMDEFAULTGROUP" ]; then export MMDEFAULTGROUP='0'fiif [ -z "$MMADMINGROUP" ]; then export MMADMINGROUP='staff'fiif [ -z "$MMSTATDIR" ]; then export MMSTATDIR='/var/mmstatd'fiif [ -z "$MMSTATDUSER" ]; then export MMSTATDUSER='mmstatd'fiif [ -z "$MMSTATDGROUP" ]; then export MMSTATDGROUP='mmstat'fi. ../mmlib/makefuncs.shinstgroup $MMADMINGROUPcd ../mmlib/instman mmlist.3 3instman mmstat.3 3cd ../cd mmstatd/src/instuser $MMSTATDUSER $MMSTATDGROUPkillbin mmstatdinstbin mmstatd 700instbin mmstat 750 $MMADMINGROUPinstman mmstat.8 8instman mmstatd.8 8instman mmstatd.conf.5 5cd ../etc/instconf mmstatd.conf 640 $MMSTATDGROUPinstdir $MMSTATDIR 750 $MMSTATDUSER $MMSTATDGROUPif [ "$MMLAUNCH" = "TRUE" ]; then startbin mmstatd $MMCONFDIR/mmstatd.confficd ../../echoecho "*** Please read the following man pages ***"echoecho "mmstat(8), mmstatd(8), mmstatd.conf(5)"echo "source auditors: mmstat(3), mmlist(3)"echoecho "Thank you for using mmsoftware."echo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -