Skip to content

Commit 80c5281

Browse files
author
root
committed
host
1 parent f9b57e9 commit 80c5281

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

create_nginx_vhost/create.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ sudo cp $CURRENT_DIR/index.html.template $WEB_DIR/$SITE_DIR/index.html
6161
sudo $SED -i "s/SITE/$DOMAIN/g" $WEB_DIR/$SITE_DIR/index.html
6262
sudo chown vagrant:vagrant $WEB_DIR/$SITE_DIR/index.html
6363

64+
### create nginx virtual host
6465
SITE=(m.$DOMAIN agent.$DOMAIN imc.$DOMAIN)
65-
6666
for a in "${SITE[@]}"; do
6767
CONFIGM=$NGINX_CONFIG/$a.conf
6868
sudo cp $CURRENT_DIR/virtual_host.template $CONFIGM
@@ -85,14 +85,10 @@ for a in "${SITE[@]}"; do
8585
sudo chown vagrant:vagrant $WEB_DIR/$a/index.html
8686
done
8787

88-
89-
90-
9188
### create mysql database
9289
#echo -e $"create mysql database core--$DOMAIN start \n"
9390
#sh /home/vagrant/sync/shell/create_nginx_vhost/mysql.sh "core"$prefix
9491

95-
9692
MYSQL_BIN="/usr/local/mysql/bin/mysql"
9793
MYSQL_ROOT="stars"
9894
MYSQL_PASS="123456"

0 commit comments

Comments
 (0)