fix: do not start API with doinst.sh

This commit is contained in:
Eli Bosley
2025-05-20 17:42:40 -04:00
parent f6ec2839b5
commit 7d88b3393c
2 changed files with 4 additions and 12 deletions

View File

@@ -247,7 +247,10 @@ if [[ -n "$TAG" && "$TAG" != "" ]]; then
sed -i "${sedcmd}" "/usr/local/emhttp/plugins/dynamix.unraid.net/README.md"
fi
echo
echo "Starting Unraid API service"
/etc/rc.d/rc.unraid-api start
echo "Unraid API service started"
echo "✅ Installation is complete, it is safe to close this window"
echo

View File

@@ -71,17 +71,6 @@ if [ "$INSTALL_MODE" = "install" ] || [ "$INSTALL_MODE" = "upgrade" ]; then
if [ -f /etc/rc.d/rc.unraid-api ]; then
chmod 755 /etc/rc.d/rc.unraid-api
echo "Made rc.unraid-api executable" >> "$LOGFILE"
# Start the service
/etc/rc.d/rc.unraid-api start
# Verify the service started successfully
if ! /etc/rc.d/rc.unraid-api status | grep -q "online"; then
echo "⚠️ Warning: Unraid API service failed to start" | tee -a "$LOGFILE"
echo "Check $LOGFILE for details"
else
echo "Unraid API service started successfully" >> "$LOGFILE"
fi
else
echo "ERROR: rc.unraid-api not found" >> "$LOGFILE"
fi