feat: run custom commands
This commit is contained in:
		
							parent
							
								
									2bad78fea9
								
							
						
					
					
						commit
						9fd23a6a2b
					
				|  | @ -43,16 +43,22 @@ software_install() { | |||
| 
 | ||||
| 	echo "Installing $COURSE software" | ||||
| 
 | ||||
|         apt-get update && apt-get upgrade -y | ||||
|         apt-get install -y $PACKAGES && apt-get clean | ||||
|     apt-get update && apt-get upgrade -y | ||||
|     apt-get install -y $PACKAGES && apt-get clean | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| custom_commands() { | ||||
| 	for((i=0; i<${#COMMANDS[@]}; i++)); do | ||||
| 	  eval ${COMMANDS[i]}; | ||||
|     done | ||||
| } | ||||
| 
 | ||||
| net_wait | ||||
| 
 | ||||
| import_config | ||||
| services_restart | ||||
| 
 | ||||
| software_install | ||||
| services_restart | ||||
| custom_commands | ||||
| 
 | ||||
| exit 0 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user