摘要:
shell脚本中if条件的判断 1.可以直接判断命令是否执行成功 if /usr/bin/wget -q -O ${script_location} ${download_url}; then chmod +x "${script_location}" echo "部署切割脚本 [完毕]" else 阅读全文
摘要:
#!/bin/bash # utf-8 # description: 部署nginx_lograte.sh脚本 # script_name="logrotate_new.sh" script_download_directory="http://172.20.147.61/CentOS/app/sc 阅读全文