#!/bin/sh
# Enable n-OS-tr services so they start automatically on boot.
set -e

# Disable the Debian default site so it doesn't conflict with ours.
rm -f /etc/nginx/sites-enabled/default

# Enable our site.
ln -sf /etc/nginx/sites-available/n-os-tr.conf /etc/nginx/sites-enabled/n-os-tr.conf

systemctl enable nginx.service

# Slice A
systemctl enable ginxsom.service
systemctl enable n-os-tr-firstboot.service

# Slice B
systemctl enable fips.service || true
systemctl enable fips-dns.service || true

# Slice C
systemctl enable c-relay.service

# TUI on tty1
systemctl disable getty@tty1.service || true
systemctl enable nostr-id-tui.service
