#!/bin/bash
echo "install some setting for zen cart 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 zen cart 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
關鍵詞標簽:Linux,Zen Cart,安全腳
相關閱讀
熱門文章 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程使用screen管理你的遠程會話GNU/Linux安裝vmware如何登錄linux vps圖形界面 Linux遠程桌面連
人氣排行 Linux下獲取CPUID、硬盤序列號與MAC地址linux tc實現(xiàn)ip流量限制dmidecode命令查看內存型號linux下解壓rar文件安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程Ubuntu linux 關機、重啟、注銷 命令lcx.exe、nc.exe、sc.exe入侵中的使用方法查看linux服務器硬盤IO讀寫負載