Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1177522
  • 博文数量: 273
  • 博客积分: 6445
  • 博客等级: 准将
  • 技术积分: 2843
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-04 23:22
文章分类

全部博文(273)

文章存档

2024年(2)

2023年(5)

2022年(3)

2021年(18)

2020年(9)

2019年(1)

2018年(13)

2017年(11)

2015年(9)

2013年(2)

2012年(4)

2011年(24)

2010年(114)

2009年(6)

2008年(29)

2007年(13)

2006年(10)

我的朋友

分类:

2010-07-22 14:30:39

#!/bin/bash
echo "install some setting for because of some secure reason..."
for site in /data0/htdocs/*;do
  if [ -d $site ]; then
    if [ -f $site/includes/application_top.php ]; then
      echo $site" is folder"
      chmod 444 -R $site/docs
      chmod 444 -R $site/extras
      chmod 444 $site/install.txt
      rm -rf $site/download
      rm -rf $site/media
      rm -rf $site/pub
for zi in `ls $site |grep zc_install`; do
echo "found zc_install and delete it"
rm -rf $site/$zi
done
echo "dropping "$site"/admin/password_forgotten.php"
rm -f $site/admin/password_forgotten.php
#echo "setting init_header.php..."
ls $site/includes/init_includes/init_header.php
sed -i $site/includes/init_includes/init_header.php -e "s/'WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'/'WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'false'/g"
fi
fi
done
阅读(751) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~