#!#/bin/bash

mkdir -p public_html/storage/cms/cache/
mkdir -p public_html/storage/cms/twig/
mkdir -p public_html/storage/cms/combiner/
mkdir -p public_html/storage/framework/cache/
mkdir -p public_html/storage/framework/sessions/
mkdir -p public_html/storage/framework/views/
mkdir -p public_html/storage/logs/

rm -rf public_html/storage/cms/cache/*
rm -rf public_html/storage/cms/twig/*
rm -rf public_html/storage/cms/combiner/*
rm -rf public_html/storage/framework/cache/*
rm -rf public_html/storage/framework/sessions/*
rm -rf public_html/storage/framework/views/*
rm -rf public_html/storage/logs/*

STR=`pwd`
SUB='/home/'
if [[ "$STR" == *"$SUB"* ]]; then
  user=${STR/$SUB/}
  chown -R $user:apache public_html/*
fi

1: dbupdate-season2204.dabory.com
2: cp.dbupdate-season2204.dabory.com
3: mail.dbupdate-season2204.dabory.com
4: stats.dbupdate-season2204.dabory.com
5: webmail.dbupdate-season2204.dabory.com
6: www.dbupdate-season2204.dabory.com
7: dangnn.daboryhost.com
8: cp.dangnn.daboryhost.com
9: mail.dangnn.daboryhost.com
10: stats.dangnn.daboryhost.com
11: webmail.dangnn.daboryhost.com
12: www.dangnn.daboryhost.com
13: genesisfin.daboryhost.com
14: cp.genesisfin.daboryhost.com
15: mail.genesisfin.daboryhost.com
16: stats.genesisfin.daboryhost.com
17: webmail.genesisfin.daboryhost.com
18: www.genesisfin.daboryhost.com
19: modunawa.daboryhost.com
20: cp.modunawa.daboryhost.com
21: mail.modunawa.daboryhost.com
22: stats.modunawa.daboryhost.com
23: webmail.modunawa.daboryhost.com
24: www.modunawa.daboryhost.com
25: msqxp.daboryhost.com
26: cp.msqxp.daboryhost.com
27: mail.msqxp.daboryhost.com
28: stats.msqxp.daboryhost.com
29: webmail.msqxp.daboryhost.com
30: www.msqxp.daboryhost.com
31: nawame.daboryhost.com
32: cp.nawame.daboryhost.com
33: mail.nawame.daboryhost.com
34: stats.nawame.daboryhost.com
35: webmail.nawame.daboryhost.com
36: www.nawame.daboryhost.com
37: newerp.daboryhost.com
38: cp.newerp.daboryhost.com
39: mail.newerp.daboryhost.com
40: stats.newerp.daboryhost.com
41: webmail.newerp.daboryhost.com
42: www.newerp.daboryhost.com
43: p2popen.daboryhost.com
44: cp.p2popen.daboryhost.com
45: mail.p2popen.daboryhost.com
46: stats.p2popen.daboryhost.com
47: webmail.p2popen.daboryhost.com
48: www.p2popen.daboryhost.com
49: promodel.daboryhost.com
50: cp.promodel.daboryhost.com
51: mail.promodel.daboryhost.com
52: stats.promodel.daboryhost.com
53: webmail.promodel.daboryhost.com
54: www.promodel.daboryhost.com
55: safebanner.daboryhost.com
56: cp.safebanner.daboryhost.com
57: mail.safebanner.daboryhost.com
58: stats.safebanner.daboryhost.com
59: webmail.safebanner.daboryhost.com
60: www.safebanner.daboryhost.com
61: scanner.daboryhost.com
62: cp.scanner.daboryhost.com
63: mail.scanner.daboryhost.com
64: stats.scanner.daboryhost.com
65: webmail.scanner.daboryhost.com
66: www.scanner.daboryhost.com
67: sso-old.daboryhost.com
68: cp.sso-old.daboryhost.com
69: mail.sso-old.daboryhost.com
70: stats.sso-old.daboryhost.com
71: webmail.sso-old.daboryhost.com
72: www.sso-old.daboryhost.com
73: ssohost.daboryhost.com
74: cp.ssohost.daboryhost.com
75: mail.ssohost.daboryhost.com
76: stats.ssohost.daboryhost.com
77: webmail.ssohost.daboryhost.com
78: www.ssohost.daboryhost.com
79: syncscan.daboryhost.com
80: cp.syncscan.daboryhost.com
81: mail.syncscan.daboryhost.com
82: stats.syncscan.daboryhost.com
83: webmail.syncscan.daboryhost.com
84: www.syncscan.daboryhost.com
85: textmsg.daboryhost.com
86: cp.textmsg.daboryhost.com
87: mail.textmsg.daboryhost.com
88: stats.textmsg.daboryhost.com
89: webmail.textmsg.daboryhost.com
90: www.textmsg.daboryhost.com
91: update-dbupdate.daboryhost.com
92: cp.update-dbupdate.daboryhost.com
93: mail.update-dbupdate.daboryhost.com
94: stats.update-dbupdate.daboryhost.com
95: webmail.update-dbupdate.daboryhost.com
96: www.update-dbupdate.daboryhost.com
97: weberp.daboryhost.com
98: cp.weberp.daboryhost.com
99: mail.weberp.daboryhost.com
100: stats.weberp.daboryhost.com
101: webmail.weberp.daboryhost.com
102: www.weberp.daboryhost.com
103: wget-dev.daboryhost.com
104: cp.wget-dev.daboryhost.com
105: mail.wget-dev.daboryhost.com
106: stats.wget-dev.daboryhost.com
107: webmail.wget-dev.daboryhost.com
108: www.wget-dev.daboryhost.com
109: p2u.kr
110: cp.p2u.kr
111: mail.p2u.kr
112: stats.p2u.kr
113: webmail.p2u.kr
114: www.p2u.kr

