Files
docker-infrastructure/synchronet/SETUP.sh
T

55 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Synchronet BBS Initial Setup Script
set -e
echo "=== Synchronet BBS Setup ==="
echo ""
# Check if container is running
if ! docker ps | grep -q synchronet; then
echo "Error: Synchronet container is not running!"
echo "Please deploy the stack in Portainer first."
exit 1
fi
echo "Step 1: Setting permissions on data directory..."
sudo chmod -R a+rwX /srv/synchronet
echo ""
echo "Step 2: Waiting for initial configuration files to be created..."
sleep 5
echo ""
echo "Step 3: Running Synchronet configuration program (scfg)..."
echo "Important tasks to complete in scfg:"
echo " 1. System → Set your BBS name and sysop information"
echo " 2. Networks → Configure any network settings"
echo " 3. External Programs → Verify door games are available"
echo ""
echo "Press ENTER to launch scfg..."
read
docker exec -it synchronet scfg
echo ""
echo "Step 4: Installing/Enabling LORD door game..."
docker exec -it synchronet bash -c "cd /sbbs && ./exec/jsexec /sbbs/xtrn/install-xtrn.js lord || echo 'LORD may already be installed'"
echo ""
echo "Step 5: Restarting Synchronet to apply changes..."
docker restart synchronet
echo ""
echo "=== Setup Complete! ==="
echo ""
echo "Access your BBS:"
echo " Web Interface: http://$(hostname -I | awk '{print $1}'):8023"
echo " Telnet: telnet $(hostname -I | awk '{print $1}') 23"
echo " SSH: ssh -p 2222 new@$(hostname -I | awk '{print $1}')"
echo ""
echo "Next steps:"
echo " 1. Configure nginx-proxy-manager for web access (see README.md)"
echo " 2. Test LORD by connecting and selecting External Programs"
echo " 3. Invite your friends!"