Refactor and streamline project setup and management scripts
- Removed `run.sh` and `test.sh` scripts to simplify the project structure. - Added `setup-first-install.sh` to handle initial setup tasks with options to skip specific steps. - Updated `invario-stack-autostart.service` to use `gitea.sh` for starting the stack on boot. - Removed `start-stack-on-boot.sh` as its functionality is now integrated into the service. - Enhanced `admin_system.html` with a new live logs panel, including automatic updates and log source selection. - Improved CSS styles for the new logs panel for better UI consistency. - Added JavaScript functionality to fetch and display live logs from the server.
This commit is contained in:
@@ -5,18 +5,12 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
SERVICE_NAME="invario-stack-autostart"
|
||||
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
|
||||
SERVICE_TEMPLATE="$SCRIPT_DIR/${SERVICE_NAME}.service"
|
||||
BOOT_SCRIPT="$SCRIPT_DIR/start-stack-on-boot.sh"
|
||||
|
||||
if [[ "${EUID}" -ne 0 ]]; then
|
||||
echo "This script must be run as root. Use: sudo $0"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -x "$BOOT_SCRIPT" ]]; then
|
||||
echo "Missing executable boot script: $BOOT_SCRIPT"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -f "$SERVICE_TEMPLATE" ]]; then
|
||||
echo "Missing service template: $SERVICE_TEMPLATE"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user