/[LeafOK_CVS]/lbbs-combo/script/bbsd_prepare.sh
ViewVC logotype

Annotation of /lbbs-combo/script/bbsd_prepare.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu Jan 8 03:27:09 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Content type: text/x-sh
Initial commit

1 sysadm 1.1 #!/bin/sh
2    
3     cd /usr/local/lbbs/conf
4    
5     if [ ! -f ssh_host_rsa_key ]; then
6     ssh-keygen -t rsa -C "MyBBS Server" -N "" -f ssh_host_rsa_key
7     if [ $? -ne 0 ]; then
8     exit 1
9     fi
10     fi
11     if [ ! -f ssh_host_ed25519_key ]; then
12     ssh-keygen -t ed25519 -C "MyBBS Server" -N "" -f ssh_host_ed25519_key
13     if [ $? -ne 0 ]; then
14     exit 2
15     fi
16     fi
17     if [ ! -f ssh_host_ecdsa_key ]; then
18     ssh-keygen -t ecdsa -C "MyBBS Server" -N "" -f ssh_host_ecdsa_key
19     if [ $? -ne 0 ]; then
20     exit 3
21     fi
22     fi
23    
24     cd /usr/local/lbbs/utils/bin
25    
26     php gen_section_menu.php
27     if [ $? -ne 0 ]; then
28     sleep 5
29     exit 4
30     fi
31    
32     php gen_ex_list.php
33     if [ $? -ne 0 ]; then
34     sleep 5
35     exit 5
36     fi
37     php gen_top.php
38     if [ $? -ne 0 ]; then
39     sleep 5
40     exit 6
41     fi

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