mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -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"
|
||||
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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user