File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed 
source/dynamix.unraid.net/install Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff 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 
299283else 
300284  echo "ERROR: setup_api.sh not found or not executable" >> "$LOGFILE" 
301285fi 
Original file line number Diff line number Diff line change 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:
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments