Skip to content

Commit

Permalink
server_setup.sh: Create default directories.
Browse files Browse the repository at this point in the history
Autocreate the default directories that are assumed
in certain sample configs, so that they can load
successfully out of the box post-install.

This addresses the scenario raised in #30.
  • Loading branch information
InterLinked1 committed Apr 25, 2024
1 parent 43b7538 commit 89cecc8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/server_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,25 @@ mariadb < scripts/dbcreate.sql
#
# Import the dump onto the new system
# mariadb < bbsdb.sql

# Create all the default directories that are used in the sample configs
# These directories are not created automatically by the makefile

# files root (transfers.conf)
mkdir -p /home/bbs/files
chown -R bbs:bbs /home/bbs/files

# maildir (mod_mail.comf)
mkdir -p /home/bbs/maildir
chown -R bbs:bbs /home/bbs/maildir

# docroot (net_http.conf), also used as gopher root by default in net_gopher.conf
mkdir -p /home/bbs/www
chown -R bbs:bbs /home/bbs/www

# newsdir (net_nntp.conf)
mkdir -p /home/bbs/newsgroups
chown -R bbs:bbs /home/bbs/newsgroups

# Set up the rootfs for containers
cd /var/lib/lbbs && /usr/local/src/lbbs/scripts/gen_rootfs.sh && chown -R root:root /var/lib/lbbs/rootfs/

0 comments on commit 89cecc8

Please sign in to comment.