mirror of
https://github.com/unraid/api.git
synced 2026-01-06 08:39:54 -06:00
refactor(install): add debugging to install process
- Remove redundant log file handling and display errors directly to users - Add debug information for troubleshooting installation issues <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved installation and verification scripts to display output and error messages directly to the user, rather than writing to a log file. * Enhanced error messages to provide clearer instructions when issues occur during installation or verification. * **New Features** * Added detailed debug output during the API service startup to assist with troubleshooting. * **Chores** * Updated script environments and streamlined directory creation for improved reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
# Unraid API Installation Verification Script
|
||||
# Checks that critical files are installed correctly
|
||||
|
||||
# Exit on errors
|
||||
set -e
|
||||
|
||||
echo "Performing comprehensive installation verification..."
|
||||
|
||||
# Define critical files to check (POSIX-compliant, no arrays)
|
||||
@@ -171,7 +168,7 @@ if [ $TOTAL_ERRORS -eq 0 ]; then
|
||||
else
|
||||
printf 'Found %d total errors.\n' "$TOTAL_ERRORS"
|
||||
echo "Installation verification completed with issues."
|
||||
echo "See log file for details: /var/log/unraid-api/dynamix-unraid-install.log"
|
||||
echo "Please review the errors above and contact support if needed."
|
||||
# We don't exit with error as this is just a verification script
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user