mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
fix: do not start API with doinst.sh
This commit is contained in:
@@ -247,7 +247,10 @@ if [[ -n "$TAG" && "$TAG" != "" ]]; then
|
|||||||
sed -i "${sedcmd}" "/usr/local/emhttp/plugins/dynamix.unraid.net/README.md"
|
sed -i "${sedcmd}" "/usr/local/emhttp/plugins/dynamix.unraid.net/README.md"
|
||||||
fi
|
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 "✅ Installation is complete, it is safe to close this window"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
@@ -71,17 +71,6 @@ if [ "$INSTALL_MODE" = "install" ] || [ "$INSTALL_MODE" = "upgrade" ]; then
|
|||||||
if [ -f /etc/rc.d/rc.unraid-api ]; then
|
if [ -f /etc/rc.d/rc.unraid-api ]; then
|
||||||
chmod 755 /etc/rc.d/rc.unraid-api
|
chmod 755 /etc/rc.d/rc.unraid-api
|
||||||
echo "Made rc.unraid-api executable" >> "$LOGFILE"
|
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
|
else
|
||||||
echo "ERROR: rc.unraid-api not found" >> "$LOGFILE"
|
echo "ERROR: rc.unraid-api not found" >> "$LOGFILE"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user