forked from UMUNC/UMUNCRouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.sh
55 lines (44 loc) · 1.04 KB
/
loader.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# for var in $testt ; do
# done
if [ $zh = "temp" ]
then
cp /etc/nginx/sites-available/temp.conf /etc/nginx/sites-enabled/;
fi
if [ $zh = "zh" ]
then
cp /etc/nginx/sites-available/zh.conf /etc/nginx/sites-enabled/;
fi
if [ $nc = "nc" ]
then
cp /etc/nginx/sites-available/nc.conf /etc/nginx/sites-enabled/;
fi
if [ $nw = "nw" ]
then
cp /etc/nginx/sites-available/nw.conf /etc/nginx/sites-enabled/;
fi
if [ $sw = "sw" ]
then
cp /etc/nginx/sites-available/sw.conf /etc/nginx/sites-enabled/;
fi
if [ $na = "na" ]
then
cp /etc/nginx/sites-available/na.conf /etc/nginx/sites-enabled/;
fi
if [ $cc = "cc" ]
then
cp /etc/nginx/sites-available/cc.conf /etc/nginx/sites-enabled/;
fi
if [ $ec = "ec" ]
then
cp /etc/nginx/sites-available/ec.conf /etc/nginx/sites-enabled/;
fi
if [ $crcmunc = "crcmunc" ]
then
cp /etc/nginx/sites-available/crcmunc.conf /etc/nginx/sites-enabled/;
fi
if [ $ivymunc = "ivymunc" ]
then
cp /etc/nginx/sites-available/ivymunc.conf /etc/nginx/sites-enabled/;
fi
nginx -g "daemon off;"