Skip to content

Commit a5b0141

Browse files
committed
init_bug
1 parent 6544eab commit a5b0141

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

install/init.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,28 @@ if [ "x${ret}" != "x0" ]; then
1515
exit 1
1616
fi
1717

18+
1819
mkdir "${PWD}/logs"
1920
echo "mkdir ${PWD}/logs"
2021
ret=$?
2122
if [ "x${ret}" != "x0" ]; then
22-
echo "An error occurs when ln -s~/colorit /opt/colorit, please contact sparker5."
23+
echo "An error occurs when mkdir ${PWD}/logs, please contact sparker5."
24+
exit 1
25+
fi
26+
27+
mkdir "${PWD}/web/codes"
28+
echo "mkdir ${PWD}/web/codes"
29+
ret=$?
30+
if [ "x${ret}" != "x0" ]; then
31+
echo "An error occurs when mkdir ${PWD}/web/codes, please contact sparker5."
2332
exit 1
2433
fi
2534

2635
echo "127.0.0.1 colorit" >> /etc/hosts
2736
echo "echo \"127.0.0.1 colorit\" >> /etc/hosts"
2837
ret=$?
2938
if [ "x${ret}" != "x0" ]; then
30-
echo "An error occurs when ln -s~/colorit /opt/colorit, please contact sparker5."
39+
echo "An error occurs when echo \"127.0.0.1 colorit\" >> /etc/hosts, please contact sparker5."
3140
exit 1
3241
fi
3342

0 commit comments

Comments
 (0)