1、脚本包含密码或者主机信息,执行完成以后自动删除脚本
rm -f `pwd $(dirname $0)`/$0
2、检查当前用户
# Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install lnmp" exit 1 fi
1、脚本包含密码或者主机信息,执行完成以后自动删除脚本
rm -f `pwd $(dirname $0)`/$0
2、检查当前用户
# Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install lnmp" exit 1 fi
相关文章: