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

浙公网安备 33010602011771号