From 7d88b3393cbd8ab1e93a86dfa1b7b74cc97255cc Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Tue, 20 May 2025 17:42:40 -0400 Subject: [PATCH] fix: do not start API with doinst.sh --- plugin/plugins/dynamix.unraid.net.plg | 5 ++++- plugin/source/dynamix.unraid.net/install/doinst.sh | 11 ----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/plugin/plugins/dynamix.unraid.net.plg b/plugin/plugins/dynamix.unraid.net.plg index 38c4869a9..6b18adc34 100755 --- a/plugin/plugins/dynamix.unraid.net.plg +++ b/plugin/plugins/dynamix.unraid.net.plg @@ -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 diff --git a/plugin/source/dynamix.unraid.net/install/doinst.sh b/plugin/source/dynamix.unraid.net/install/doinst.sh index 0c2a6971d..2ee92da52 100644 --- a/plugin/source/dynamix.unraid.net/install/doinst.sh +++ b/plugin/source/dynamix.unraid.net/install/doinst.sh @@ -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