-
Notifications
You must be signed in to change notification settings - Fork 15
/
INSTALL_BIN
54 lines (44 loc) · 1.08 KB
/
INSTALL_BIN
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
#!/bin/sh
HOMEBBS=
mkdir ${HOMEBBS}
chown bbs ${HOMEBBS}
chgrp bbs ${HOMEBBS}
cp lang.h ${HOMEBBS}/conf/clang.cf
cp lang.h ${HOMEBBS}/conf/elang.cf
mkdir ${HOMEBBS}/home
chown bbs ${HOMEBBS}/home
mkdir ${HOMEBBS}/mail
chown bbs ${HOMEBBS}/mail
mkdir ${HOMEBBS}/note
chown bbs ${HOMEBBS}/note
for i in 0 a b c d e f g h i j k l m n o p q r s t u v w x y z ;
do
mkdir ${HOMEBBS}/home/$i
chown bbs ${HOMEBBS}/home/$i
chgrp bbs ${HOMEBBS}/home/$i
mkdir ${HOMEBBS}/mail/$i
chown bbs ${HOMEBBS}/mail/$i
chgrp bbs ${HOMEBBS}/mail/$i
mkdir ${HOMEBBS}/note/$i
chown bbs ${HOMEBBS}/note/$i
chgrp bbs ${HOMEBBS}/note/$i
done
for i in current output cancel input record ;
do
mkdir ${HOMEBBS}/news/$i
chown bbs ${HOMEBBS}/news/$i
chgrp bbs ${HOMEBBS}/news/$i
done
chown -R bbs ${HOMEBBS}
chgrp -R bbs ${HOMEBBS}
for i in bin boards edit log realuser tmp treasure write ID ;
do
mkdir ${HOMEBBS}/$i
chown bbs ${HOMEBBS}/$i
chgrp bbs ${HOMEBBS}/$i
done
(cd ${HOMEBBS}; gzip -dc FormosaBBS-${VERSION}-bin.tar.gz | tar xf - )
for i in edit log realuser tmp write ID ;
do
chmod 0700 ${HOMEBBS}
done