/[LeafOK_CVS]/lbbs/makedist.sh
ViewVC logotype

Contents of /lbbs/makedist.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations)
Sat Jul 5 01:21:40 2025 UTC (8 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +0 -0 lines
Content type: text/x-sh
FILE REMOVED
Remove legacy files

1 #!/bin/sh
2 cpfile() {
3 if [ ! -f $1/$2 ]; then
4 /bin/cp $2 $1/$2
5 fi
6 }
7
8 md() {
9 if [ ! -d $1/$2 ]; then
10 mkdir $1/$2
11 fi
12 }
13
14 PRG_HOME="$1"
15
16 md ${PRG_HOME} conf
17 md ${PRG_HOME} data
18 md ${PRG_HOME} var
19 md ${PRG_HOME} log
20 md ${PRG_HOME}/var articles
21 md ${PRG_HOME}/var gen_ex
22 md ${PRG_HOME}/var chicken
23
24 for i in `find conf/ -maxdepth 1 -type f`; do
25 cpfile ${PRG_HOME} $i
26 done
27
28 for i in `find data/ -maxdepth 1 -type f`; do
29 cpfile ${PRG_HOME} $i
30 done
31
32 chown bbs:bbs -R ${PRG_HOME}
33 find ${PRG_HOME} -type d -exec chmod 2750 {} \;
34 chmod 6750 ${PRG_HOME}/bin/bbsd

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1