Browse Source

check_site lua script funktionierte nicht mehr richtig

Michael Schwarz 4 years ago
parent
commit
14a8489c0d

+ 0 - 1
ffho-domain-migration/check_site.lua

@@ -1 +0,0 @@
-need_string(in_site({'domain_migration', 'match'}, false))

+ 0 - 3
ffho-domain-migration/luasrc/lib/gluon/upgrade/002-domain-migration

@@ -18,9 +18,6 @@ if sys_stat.stat(file) then
 	local json = require 'jsonc'
 	local site = assert(json.load('/lib/gluon/site.json'))
 
-	if (site.domain_migration or {}).match then
-		domain = domain:match(site.domain_migration.match) or domain
-	end
 	uci:set('gluon', 'core', 'domain', domain)
 	os.remove(file)
 end