Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Aug 8, 2024
1 parent 685d0be commit f64e985
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/middlewared/middlewared/plugins/system_general/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ async def do_update(self, data):
if ui_restart_delay is not None:
await self.middleware.call('system.general.ui_restart', ui_restart_delay)

if any(config[k] != new_config[k] for k in ['ui_port', 'ui_httpsport', 'ui_httpsredirect', 'ui_address',
'ui_v6address']):
await self.middleware.call('system.reload_cli')
for key in ('ui_port', 'ui_httpsport', 'ui_httpsredirect', 'ui_address', 'ui_v6address'):
if config[key] != new_config[key]:
await self.middleware.call('system.reload_cli')
break

return await self.config()

Expand Down

0 comments on commit f64e985

Please sign in to comment.