gluon/package/gluon-legacy/files/lib/gluon/upgrade/000-legacy
Matthias Schiffer 9b172bbaf4 Move all upgrade scripts to a common directory
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.
2015-01-24 11:27:47 +01:00

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