From fc03e0fdf3e7389ee668d66cf7224df2aaaaa95b Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 25 Nov 2019 10:13:00 -0600 Subject: T1824: set write permissions for cfg_group on vyos-migrate.log --- python/vyos/migrator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/vyos/migrator.py b/python/vyos/migrator.py index 86e1af183..281c247db 100644 --- a/python/vyos/migrator.py +++ b/python/vyos/migrator.py @@ -80,6 +80,8 @@ class Migrator(object): """ self._log_file = os.path.join(vyos.defaults.directories['config'], 'vyos-migrate.log') + # on creation, allow write permission for cfg_group + os.umask(0o113) try: log = open('{0}'.format(self._log_file), 'w') log.write("List of executed migration scripts:\n") -- cgit v1.2.3