/bin/sh

for i in $(seq 2 55)
do

 #复制apache配置文件
  c="c$i"
 # filename="$c.conf"
 # cp /etc/apache2/sites-enabled/c1.conf  /etc/apache2/sites-enabled/$filename
 # sed -i "s/c1/$c/g"  /etc/apache2/sites-enabled/$filename

 #复制wp文件夹
 #cp -R /var/www/html/c1 /var/www/html/$c
  #修改wp-config.php,设置表的前置名称
  #sed -i "s/C1/$c/g"  /var/www/html/$c/wp-config.php
 #增加hosts解析
 #url="192.168.10.14 $c.wp.cn"
 #echo $url >> /etc/hosts

done;

chown -R www-data:www-data /var/www/html

标签: none

评论已关闭