nginx: introduce migration for old uci conf template
authorChristian Marangi <redacted>
Wed, 3 May 2023 23:47:07 +0000 (01:47 +0200)
committerChristian Marangi <redacted>
Sat, 20 May 2023 21:18:00 +0000 (23:18 +0200)
commit6a3cc76ea56d8e4ac675e67a55c7f4b76e97bd5b
tree9bbb2371091023eb11e94677a664ba2a2ee6786b
parente499f0adf12a1a15079f9c9fcbe7b34ff3003f72
nginx: introduce migration for old uci conf template

Introduce support for migration of old uci conf template to new version.
Uci conf template are saved in config backup. This cause problem on config
restore as old config template might have compatibility problem with new
nginx implementation.

Add logic to migrate the template script at runtime to correctly align
to latest change from nginx and nginx-util.

Fixes: 65a676ed56fb ("nginx: introduce support for dynamic modules")
Fixes: #20904
Signed-off-by: Christian Marangi <redacted>
net/nginx/files/nginx.init
git clone https://git.99rst.org/PROJECT