gluon-legacy: convert the remaining legacy infrastructure to a simple invariant script
This commit is contained in:
		
							parent
							
								
									0371b443d3
								
							
						
					
					
						commit
						20187005d4
					
				| @ -1,13 +0,0 @@ | ||||
| #!/usr/bin/lua | ||||
| 
 | ||||
| local site = require 'gluon.site_config' | ||||
| 
 | ||||
| local ret = 1 | ||||
| 
 | ||||
| for _, file in ipairs(site.legacy.version_files) do | ||||
| 	if os.remove(file) then | ||||
| 		ret = 0 | ||||
| 	end | ||||
| end | ||||
| 
 | ||||
| os.exit(ret) | ||||
| @ -1,8 +0,0 @@ | ||||
| #!/usr/bin/lua | ||||
| 
 | ||||
| local site = require 'gluon.site_config' | ||||
| 
 | ||||
| 
 | ||||
| for _, file in ipairs(site.legacy.old_files) do | ||||
| 	os.remove(file) | ||||
| end | ||||
							
								
								
									
										11
									
								
								package/gluon-legacy/files/lib/gluon/upgrade/core/invariant/990-legacy-late
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								package/gluon-legacy/files/lib/gluon/upgrade/core/invariant/990-legacy-late
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,11 @@ | ||||
| #!/usr/bin/lua | ||||
| 
 | ||||
| local site = require 'gluon.site_config' | ||||
| local sysconfig = require 'gluon.sysconfig' | ||||
| 
 | ||||
| 
 | ||||
| if sysconfig.gluon_version == 'legacy' then | ||||
|   for _, file in ipairs(site.legacy.old_files) do | ||||
|     os.remove(file) | ||||
|   end | ||||
| end | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user