欢迎各位兄弟 发布技术文章
这里的技术是共享的
add_APP_LOG_TO_env.sh ( addAPP_LOG_TO_env.sh )
#!/bin/bash
#
for file in /home/wwwroot/*/public_html ;do
if [ -d "$file" -a -f "${file}/.env" ] ;then
# echo $i
ENV=${file}/.env
sed -i '/APP\_URL\=/a \APP_LOG=daily' $ENV
sed -i 's/\r$//g' $ENV
fi
done
#!/bin/bash
#
for file in /home/wwwroot/*/public_html ;do
if [ -d "$file" -a -f "${file}/.env" ] ;then
# echo $i
ENV=${file}/.env
sed -i '/APP\_URL\=/a \APP_LOG=daily' $ENV
sed -i 's/\r$//g' $ENV
fi
done
apache_add_public_dir.sh ( apacheaddpublicdir.sh )
#!/bin/bash
#
for I in /www/wdlinux/httpd-2.2.31/conf/vhost/* ; do
sed -i 's/public\_html/public\_html\/public/g' $I
sed -i 's/\r//g' $I
done
nginx_add_public_dir.sh ( nginxaddpublicdir.sh )
#!/bin/bash
#
for I in /www/wdlinux/nginx-1.8.1/conf/vhost/* ; do
sed -i 's/public\_html/public\_html\/public/g' $I
sed -i 's/\r//g' $I
done