mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-04 13:27:21 +08:00 
			
		
		
		
	Print out a log message saying what image is being copied where
This commit is contained in:
		@ -118,9 +118,11 @@ func migrateConfigFile() {
 | 
				
			|||||||
	// Migrate logo
 | 
						// Migrate logo
 | 
				
			||||||
	if logo := oldConfig.InstanceDetails.Logo; logo != "" {
 | 
						if logo := oldConfig.InstanceDetails.Logo; logo != "" {
 | 
				
			||||||
		filename := filepath.Base(logo)
 | 
							filename := filepath.Base(logo)
 | 
				
			||||||
 | 
							oldPath := filepath.Join("webroot", logo)
 | 
				
			||||||
		newPath := filepath.Join("data", filename)
 | 
							newPath := filepath.Join("data", filename)
 | 
				
			||||||
		err := utils.Copy(filepath.Join("webroot", logo), newPath)
 | 
					
 | 
				
			||||||
		log.Traceln("Copying logo from", logo, "to", newPath)
 | 
							log.Infoln("Copying logo from", oldPath, "to", newPath)
 | 
				
			||||||
 | 
							err := utils.Copy(oldPath, newPath)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			log.Errorln("Error moving logo", logo, err)
 | 
								log.Errorln("Error moving logo", logo, err)
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user