Skip to content

Commit

Permalink
增加暂时关闭selinux
Browse files Browse the repository at this point in the history
修复本地版nginx日志不能压缩bug
  • Loading branch information
buyfakett committed Jun 1, 2023
1 parent c63e8bb commit ebb9f77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions initialization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Font="\033[0m"
Red="\033[31m"

# 本地脚本版本号
shell_version=v1.4.3
shell_version=v1.4.4
# 远程仓库作者
git_project_author_name=buyfakett
# 远程仓库项目名
Expand Down Expand Up @@ -281,7 +281,7 @@ EOF
for day in 1;
do
find ${loacl_nginx_site}/logs/ -name \`date -d "\${day} days ago" +%Y-%m-%d\`*.log -type f -exec gzip {} \;
find ${loacl_nginx_site}/logs/ -name nginx-\`date -d "\${day} days ago" +%Y-%m-%d\`*.log -type f -exec gzip {} \;
done
EOF

Expand Down Expand Up @@ -445,6 +445,7 @@ function main(){
if [ $EXITSTATUS = 0 ]; then
case $OPTION in
1)
setenforce 0
update_packages
install_tools

Expand Down Expand Up @@ -508,6 +509,7 @@ function main(){
fi
;;
2)
setenforce 0
update_packages
install_docker
install_tools
Expand Down

0 comments on commit ebb9f77

Please sign in to comment.