|  | @@ -165,11 +165,17 @@ function upgrade_koel {
 | 
	
		
			
			| 165 | 165 |          KOEL_DOMAIN_NAME=$(get_completion_param "koel domain")
 | 
	
		
			
			| 166 | 166 |      fi
 | 
	
		
			
			| 167 | 167 |  
 | 
	
		
			
			|  | 168 | +    systemctl stop koel
 | 
	
		
			
			|  | 169 | +
 | 
	
		
			
			| 168 | 170 |      # update to the next commit
 | 
	
		
			
			| 169 | 171 |      function_check set_repo_commit
 | 
	
		
			
			| 170 | 172 |      set_repo_commit /var/www/$KOEL_DOMAIN_NAME/htdocs "koel commit" "$KOEL_COMMIT" $KOEL_REPO
 | 
	
		
			
			| 171 | 173 |  
 | 
	
		
			
			| 172 |  | -    chown -R www-data:www-data /var/www/${KOEL_DOMAIN_NAME}/htdocs
 | 
	
		
			
			|  | 174 | +    cd /var/www/${KOEL_DOMAIN_NAME}/htdocs
 | 
	
		
			
			|  | 175 | +    php artisan koel:init
 | 
	
		
			
			|  | 176 | +    chown -R www-data:www-data *
 | 
	
		
			
			|  | 177 | +
 | 
	
		
			
			|  | 178 | +    systemctl start koel
 | 
	
		
			
			| 173 | 179 |  }
 | 
	
		
			
			| 174 | 180 |  
 | 
	
		
			
			| 175 | 181 |  
 |