docs: simplify README and remove FreeBSD support
- Strip README to essentials with wiki references only - Remove non-existent API docs and troubleshooting links - Focus on quick start and actual integrations (merkwerk) - Remove FreeBSD support from all installation scripts - Clean up platform detection logic in scripts - Maintain OpenBSD and Linux support only Reduces maintenance burden and aligns with actual project scope.
This commit is contained in:
parent
6c60d88f62
commit
8b7806670c
10 changed files with 58 additions and 306 deletions
|
|
@ -15,25 +15,25 @@ if [ "$(uname)" = "OpenBSD" ]; then
|
|||
echo "Error: deployment/openbsd/rc.d-furt template not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
cp deployment/openbsd/rc.d-furt /etc/rc.d/furt
|
||||
chmod +x /etc/rc.d/furt
|
||||
echo "furt_flags=" >> /etc/rc.conf.local
|
||||
rcctl enable furt
|
||||
echo "OpenBSD service created and enabled using repository template"
|
||||
|
||||
|
||||
elif [ "$(uname)" = "Linux" ]; then
|
||||
# Use systemd template from repository
|
||||
if [ ! -f "deployment/linux/furt.service" ]; then
|
||||
echo "Error: deployment/linux/furt.service template not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
cp deployment/linux/furt.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl enable furt
|
||||
echo "Linux systemd service created and enabled using repository template"
|
||||
|
||||
|
||||
else
|
||||
echo "Unsupported operating system for service creation"
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
set -e
|
||||
|
||||
# Detect operating system for config directory
|
||||
if [ "$(uname)" = "OpenBSD" ] || [ "$(uname)" = "FreeBSD" ]; then
|
||||
if [ "$(uname)" = "OpenBSD" ]; then
|
||||
CONFIG_DIR="/usr/local/etc/furt"
|
||||
USER="_furt"
|
||||
GROUP="_furt"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
set -e
|
||||
|
||||
# Detect operating system
|
||||
if [ "$(uname)" = "OpenBSD" ] || [ "$(uname)" = "FreeBSD" ]; then
|
||||
if [ "$(uname)" = "OpenBSD" ]; then
|
||||
# BSD systems use _furt user convention
|
||||
groupadd _furt 2>/dev/null || true
|
||||
useradd -g _furt -s /bin/false -d /var/empty _furt 2>/dev/null || true
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ echo -e "${GREEN}=== Furt Lua HTTP-Server Startup ===${NC}"
|
|||
LUA_COMMAND=""
|
||||
|
||||
# Config check first
|
||||
if [ "$(uname)" = "OpenBSD" ] || [ "$(uname)" = "FreeBSD" ]; then
|
||||
if [ "$(uname)" = "OpenBSD" ]; then
|
||||
CONFIG_FILE="/usr/local/etc/furt/furt.conf"
|
||||
PID_FILE="/var/run/furt/furt.pid"
|
||||
else
|
||||
|
|
|
|||
|
|
@ -24,8 +24,13 @@ cp -r integrations/ "$TARGET/"
|
|||
[ -f "VERSION" ] && cp VERSION "$TARGET/"
|
||||
[ -f ".version_history" ] && cp .version_history "$TARGET/"
|
||||
|
||||
# Set proper permissions
|
||||
chown -R root:wheel "$TARGET" 2>/dev/null || chown -R root:root "$TARGET"
|
||||
# Set proper permissions based on operating system
|
||||
if [ "$(uname)" = "OpenBSD" ]; then
|
||||
chown -R root:wheel "$TARGET"
|
||||
else
|
||||
chown -R root:root "$TARGET"
|
||||
fi
|
||||
|
||||
chmod -R 644 "$TARGET"
|
||||
find "$TARGET" -type d -exec chmod 755 {} \;
|
||||
chmod +x "$TARGET/scripts/start.sh"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
set -e
|
||||
|
||||
# Detect config file location
|
||||
if [ "$(uname)" = "OpenBSD" ] || [ "$(uname)" = "FreeBSD" ]; then
|
||||
if [ "$(uname)" = "OpenBSD" ]; then
|
||||
CONFIG_FILE="/usr/local/etc/furt/furt.conf"
|
||||
else
|
||||
CONFIG_FILE="/etc/furt/furt.conf"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue