9b172bbaf4
Moving the scripts to a common directory not only vastly simplifies the zzz-gluon-upgrade script, but also allows to define an ordering of such scripts across packages.
12 lines
280 B
Lua
Executable File
12 lines
280 B
Lua
Executable File
#!/usr/bin/lua
|
|
|
|
local site = require 'gluon.site_config'
|
|
local sysconfig = require 'gluon.sysconfig'
|
|
|
|
for _, file in ipairs(site.legacy.version_files) do
|
|
if os.remove(file) then
|
|
-- Set version being upgraded from to 'legacy'
|
|
sysconfig.gluon_version = 'legacy'
|
|
end
|
|
end
|