This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
gluon-firmware/package/gluon-legacy/files/lib/gluon/upgrade/000-legacy

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