File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed 
api/src/unraid-api/unraid-file-modifier Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- import  {  Injectable  }  from  '@nestjs/common' ; 
1+ import  {  Injectable ,   Logger  }  from  '@nestjs/common' ; 
22
3+ import  {  ONE_SECOND_MS  }  from  '@app/consts.js' ; 
34import  {  NginxService  }  from  '@app/unraid-api/nginx/nginx.service.js' ; 
45import  {  ModificationEffect  }  from  '@app/unraid-api/unraid-file-modifier/file-modification.js' ; 
56
67@Injectable ( ) 
78export  class  FileModificationEffectService  { 
9+     private  readonly  logger  =  new  Logger ( FileModificationEffectService . name ) ; 
810    constructor ( private  readonly  nginxService : NginxService )  { } 
911    async  runEffect ( effect : ModificationEffect ) : Promise < void >  { 
1012        switch  ( effect )  { 
1113            case  'nginx:reload' :
14+                 this . logger . log ( 'Reloading Nginx in 10 seconds...' ) ; 
15+                 await  new  Promise ( ( resolve )  =>  setTimeout ( resolve ,  10  *  ONE_SECOND_MS ) ) ; 
1216                await  this . nginxService . reload ( ) ; 
17+                 this . logger . log ( 'Nginx reloaded' ) ; 
1318                break ; 
1419        } 
1520    } 
Original file line number Diff line number Diff line change @@ -378,7 +378,6 @@ echo "Installation completed at $(date)" >> "$LOGFILE"
378378# which determines the current API version and vendor archive to keep. 
379379/etc/rc.d/rc.unraid-api cleanup-dependencies 
380380
381- echo "Starting Unraid API service" 
382381echo "If no additional messages appear within 30 seconds, it is safe to refresh the page." 
383382/etc/rc.d/rc.unraid-api plugins add unraid-api-plugin-connect -b --no-restart 
384383/etc/rc.d/rc.unraid-api start 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments