diff options
author | John Estabrook <jestabro@sentrium.io> | 2019-11-25 10:13:00 -0600 |
---|---|---|
committer | John Estabrook <jestabro@sentrium.io> | 2019-11-25 10:13:00 -0600 |
commit | fc03e0fdf3e7389ee668d66cf7224df2aaaaa95b (patch) | |
tree | 99523e61aaa1ce4b9e9b309038787492c04f0ece /python | |
parent | 5238f0970219639e988bc31beb7db27b43f94e6e (diff) | |
download | vyos-1x-fc03e0fdf3e7389ee668d66cf7224df2aaaaa95b.tar.gz vyos-1x-fc03e0fdf3e7389ee668d66cf7224df2aaaaa95b.zip |
T1824: set write permissions for cfg_group on vyos-migrate.log
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/migrator.py | 2 |
1 files changed, 2 insertions, 0 deletions
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") |