Skip to content

Commit 02e3f3e

Browse files
committed
move unraid-api symlink assurance to doinst
1 parent f9952ef commit 02e3f3e

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

plugin/plugins/dynamix.unraid.net.plg

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -280,22 +280,6 @@ if [ -x "$SCRIPTS_DIR/setup_api.sh" ]; then
280280
# Capture output and add to log file
281281
setup_output=$("$SCRIPTS_DIR/setup_api.sh")
282282
echo "$setup_output" >> "$LOGFILE"
283-
284-
# Verify symlinks were created
285-
if [ -L "/usr/local/bin/unraid-api" ]; then
286-
echo "Symlink created successfully" >> "$LOGFILE"
287-
else
288-
echo "ERROR: Symlink not created, attempting to create manually" >> "$LOGFILE"
289-
# Create the symlink manually as fallback
290-
if [ -f "/usr/local/unraid-api/dist/cli.js" ]; then
291-
ln -sf "/usr/local/unraid-api/dist/cli.js" "/usr/local/bin/unraid-api"
292-
ln -sf "/usr/local/bin/unraid-api" "/usr/local/sbin/unraid-api"
293-
ln -sf "/usr/local/bin/unraid-api" "/usr/bin/unraid-api"
294-
echo "Manually created symlinks" >> "$LOGFILE"
295-
else
296-
echo "ERROR: Source file for symlink not found" >> "$LOGFILE"
297-
fi
298-
fi
299283
else
300284
echo "ERROR: setup_api.sh not found or not executable" >> "$LOGFILE"
301285
fi
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
#!/bin/sh
1+
#!/bin/sh
2+
3+
rm -rf usr/local/bin/unraid-api
4+
ln -sf usr/local/unraid-api/dist/cli.js usr/local/bin/unraid-api
5+
6+
# auto-generated actions from makepkg:

0 commit comments

Comments
 (0)