Files
StateGrid/setup.sh
Mu Xiaokang 09de1977cd Fix cgroup.
deleted:    install_shell/cgroup-d5000-install/cgconfig.conf
	deleted:    install_shell/cgroup-d5000-install/cgrules.conf
	deleted:    install_shell/cgroup-d5000-install/install.sh
	new file:   install_shell/cgroup-d5000-install/set_libcgroup.sh
	modified:   setup.sh
2014-04-16 15:39:07 +08:00

58 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
#Script
cd /opt/StateGrid/install_shell
if [ $# -lt 3 ];then
echo -e "Please enter the user name,user's home directory,user's shell!\n"
echo -e "example:\n$0 d5000 /home/d5000/huazhong tcsh"
echo -e "or"
echo -e "example:\n$0 kingsoft /home/kingsoft/huazhong bash"
echo -e "or"
echo -e "example:\n$0 ems /users/ems tcsh"
exit 1
else
./create_users.sh $1 $2 $3
echo "====Create users...."
fi
#./set_network.sh
./set_bonding.sh
echo "====Set Bonding..."
./set_ssh.sh $1 $2 $3
echo "====Set ssh...."
./update_time.sh
echo "====Set update time...."
./set_fonts.sh
echo "====add fonts===="
./set_limits.conf.sh
echo "====Set limits.conf===="
./set_fstab.sh
echo "===Set /etc/fstab==="
#./install_tool.sh
#echo "===instll update packages==="
#./set_close_ipv6.sh
#echo "===close ipv6 ip==="
./set_tcsh_encode.sh $3
echo "====Set tcsh encode to gb18030..."
./other.sh $1 $2 $3
echo "===Set other==="
cd cgroup-d5000-install
./set_libcgroup.sh $1 $2 $3
echo "===Set cgroup==="
echo "=======Finish========"